forked from patternfly/patternfly-react
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathStatusBanner.figma.tsx
More file actions
36 lines (33 loc) · 1.04 KB
/
Copy pathStatusBanner.figma.tsx
File metadata and controls
36 lines (33 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
import figma from '@figma/code-connect';
import { Banner } from '@patternfly/react-core';
// Documentation for Banner can be found at https://www.patternfly.org/components/banner
figma.connect(
Banner,
'https://www.figma.com/design/aEBBvq0J3EPXxHvv6WgDx9/PatternFly-6%3A-Components-Test?node-id=221-937',
{
props: {
// string
text: figma.string('✏️ Center text'),
// enum
status: figma.enum('Status', {
Success: 'success',
Warning: 'warning',
Danger: 'danger',
Info: 'info',
Custom: 'custom'
}),
screenReaderText: figma.enum('Status', {
Success: 'Success banner screen reader text',
Warning: 'Warning banner screen reader text',
Danger: 'Danger banner screen reader text',
Info: 'Info banner screen reader text',
Custom: 'Custom banner screen reader text'
})
},
example: (props) => (
<Banner screenReaderText={props.screenReaderText} status={props.status}>
{props.text}
</Banner>
)
}
);