File tree Expand file tree Collapse file tree
packages/code-connect/components/Label Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,12 +2,14 @@ import figma from '@figma/code-connect';
22import { Label } from '@patternfly/react-core' ;
33
44// Documentation for Label can be found at https://www.patternfly.org/components/label
5+ // TODO: DESIGN: Update status to be a prop
56
67figma . connect (
78 Label ,
89 'https://www.figma.com/design/aEBBvq0J3EPXxHvv6WgDx9/PatternFly-6--Components-Test?node-id=2800-609' ,
910 {
1011 props : {
12+ status : 'info' , // TODO: DESIGN: Update status to be a prop
1113 // string
1214 labelText : figma . string ( 'Text' ) ,
1315
@@ -38,13 +40,16 @@ figma.connect(
3840 Cyan : 'teal' , // TODO: DESIGN: Update to teal
3941 Gold : 'yellow' // TODO: DESIGN: Update to yellow
4042 } ) ,
41- variant : figma . enum ( 'Type' , { Outlined : 'outline' } ) ,
42-
43- children : figma . children ( '*' )
43+ variant : figma . enum ( 'Type' , { Outlined : 'outline' } )
4444 } ,
4545 example : ( props ) => (
46- < Label isCompact = { props . isCompact } isEditable = { props . isEditable } color = { props . color } variant = { props . variant } >
47- { props . children }
46+ < Label
47+ isCompact = { props . isCompact }
48+ status = { props . status }
49+ isEditable = { props . isEditable }
50+ color = { props . color }
51+ variant = { props . variant }
52+ >
4853 { props . labelText }
4954 </ Label >
5055 )
You can’t perform that action at this time.
0 commit comments