-
Notifications
You must be signed in to change notification settings - Fork 381
Expand file tree
/
Copy pathToastAlert.figma.tsx
More file actions
40 lines (36 loc) · 959 Bytes
/
ToastAlert.figma.tsx
File metadata and controls
40 lines (36 loc) · 959 Bytes
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
37
38
39
40
import figma from '@figma/code-connect';
import { Alert } from '@patternfly/react-core';
// Documentation for Alert can be found at https://www.patternfly.org/components/alert
figma.connect(
Alert,
'https://www.figma.com/design/aEBBvq0J3EPXxHvv6WgDx9/PatternFly-6--Components-Test?node-id=1110-2587',
{
props: {
// string
description: figma.string('✏️ Title'),
title: figma.string('✏️ Title'),
// boolean
isExpandable: figma.boolean('Expandable'),
// enum
variant: figma.enum('Type', {
Custom: 'custom',
Danger: 'danger',
Info: 'info',
Success: 'success',
Warning: 'warning'
})
},
example: (props) => (
<Alert
isExpandable={props.isExpandable}
title={props.title}
variant={props.variant}
hasAnimations
isToast
isLiveRegion
>
{props.description}
</Alert>
)
}
);