-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(code-connect): update notification components (#18192)
* fix(code-connect): update notification components * chore: fix title
- Loading branch information
1 parent
b944bb1
commit 899eb8d
Showing
8 changed files
with
129 additions
and
78 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import React from 'react'; | ||
import { NotificationCallout } from './NotificationCallout'; | ||
import figma from '@figma/code-connect'; | ||
|
||
/** | ||
* -- This file was auto-generated by Code Connect -- | ||
* `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( | ||
NotificationCallout, | ||
'https://www.figma.com/design/YAnB1jKx0yCUL29j6uSLpg/(v11)-Carbon-Design-System?node-id=84336-36580&t=nJ89fkK549fgCUuf-4', | ||
{ | ||
props: { | ||
title: figma.boolean('Title'), | ||
messageText: figma.string('Message text'), | ||
titleText: figma.string('Title text'), | ||
status: figma.enum('Status', { | ||
Info: 'info', | ||
Warning: 'warning', | ||
}), | ||
highContrast: figma.boolean('High contrast'), | ||
longMessage: figma.boolean('Long message'), | ||
}, | ||
example: (props) => <NotificationCallout />, | ||
} | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters