Skip to content

Commit

Permalink
add heading
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasoppermann committed Aug 14, 2024
1 parent c4659ff commit 695d31c
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions packages/react/src/Heading/Heading.figma.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
import React from 'react'
import {Heading} from './Heading'
import figma from '@figma/code-connect'

/**
* -- This file was auto-generated by `figma connect create` --
* `props` includes a mapping from Figma properties and variants to
* suggested values. You should update this to match the props of your
* code component, and update the `example` function to return the
* code example you'd like to see in Figma
*/

figma.connect(
Heading,
'https://www.figma.com/design/GCvY3Qv8czRgZgvl1dG6lp/Primer-Web?node-id=21069-78785&t=LhKEppN9LJfzQQ49-4',
{
props: {
text: figma.textContent('Text'),
variant: figma.enum('variant', {
large: 'large',
medium: 'medium',
small: 'small',
}),
},
example: ({text, variant}) => <Heading variant={variant}>{text}</Heading>,
},
)

0 comments on commit 695d31c

Please sign in to comment.