We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
https://github.com/figma/code-connect/blob/main/cli/README.md#integrating-with-storybook Do we want this? Or do we want to keep config files separate? Requires:
import React from 'react'; import figma from '@figma/code-connect'; import { ArrowRight } from '@carbon/icons-react'; import Link from './Link'; import mdx from './Link.mdx'; export default { title: 'Components/Link', component: Link, parameters: { docs: { page: mdx, }, design: { type: 'figma', url: 'https://www.figma.com/file/YAnB1jKx0yCUL29j6uSLpg/(v11)-All-themes---Carbon-Design-System?type=design&node-id=50111-991&mode=design&t=kyFCPK0tCeufcNP2-4', examples: [FigmaTest], props: { inline: figma.boolean('Inline'), children: figma.string('Link text'), renderIcon: figma.instance('Swap icon'), size: figma.enum('Size', { Large: 'lg', Medium: 'md', Small: 'sm', }), disabled: figma.enum('State', { Disabled: true, }), }, }, }, args: { disabled: false, inline: false, visited: false, children: 'Link', }, argTypes: { children: { table: { disable: true, }, }, as: { control: false, }, renderIcon: { table: { disable: true, }, }, }, }; export const FigmaTest = ({ size, disabled, inline, renderIcon, children }) => ( <Link inline={inline} disabled={disabled} renderIcon={renderIcon} size={size} href="#"> {children} </Link> );
The text was updated successfully, but these errors were encountered:
I'm down to try it out. Not sure if it'll require doing #16468 first
Sorry, something went wrong.
No branches or pull requests
Integrate Code Connect with Storybook
https://github.com/figma/code-connect/blob/main/cli/README.md#integrating-with-storybook
Do we want this? Or do we want to keep config files separate?
Requires:
Pro
Con
Example integrated storybook code
The text was updated successfully, but these errors were encountered: