@vibe/core 4.2.5 → 4.3.0-alpha-9bd83.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/metadata/accessibility/Accordion.md +10 -0
- package/dist/metadata/accessibility/AlertBanner.md +9 -0
- package/dist/metadata/accessibility/Avatar.md +12 -0
- package/dist/metadata/accessibility/AvatarGroup.md +6 -0
- package/dist/metadata/accessibility/BreadcrumbsBar.md +10 -0
- package/dist/metadata/accessibility/Button.md +13 -0
- package/dist/metadata/accessibility/ButtonGroup.md +9 -0
- package/dist/metadata/accessibility/Checkbox.md +13 -0
- package/dist/metadata/accessibility/Chips.md +10 -0
- package/dist/metadata/accessibility/Combobox.md +6 -0
- package/dist/metadata/accessibility/DropdownBasicDropdown.md +10 -0
- package/dist/metadata/accessibility/IconButton.md +26 -0
- package/dist/metadata/accessibility/Info.md +12 -0
- package/dist/metadata/accessibility/Link.md +8 -0
- package/dist/metadata/accessibility/List.md +11 -0
- package/dist/metadata/accessibility/Menu.md +10 -0
- package/dist/metadata/accessibility/MenuButton.md +6 -0
- package/dist/metadata/accessibility/MenuItem.md +8 -0
- package/dist/metadata/accessibility/Modal.md +35 -0
- package/dist/metadata/accessibility/NumberField.md +9 -0
- package/dist/metadata/accessibility/RadioButton.md +11 -0
- package/dist/metadata/accessibility/Search.md +10 -0
- package/dist/metadata/accessibility/Tabs.md +10 -0
- package/dist/metadata/accessibility/TextArea.md +17 -0
- package/dist/metadata/accessibility/TextField.md +16 -0
- package/dist/metadata/accessibility/Toast.md +4 -0
- package/dist/metadata/accessibility/Toggle.md +7 -0
- package/dist/metadata/accessibility/Tooltip.md +11 -0
- package/dist/metadata/components.json +20940 -0
- package/dist/metadata/examples/Accordion.md +136 -0
- package/dist/metadata/examples/AlertBanner.md +85 -0
- package/dist/metadata/examples/AttentionBox.md +267 -0
- package/dist/metadata/examples/Avatar.md +118 -0
- package/dist/metadata/examples/AvatarGroup.md +390 -0
- package/dist/metadata/examples/Badge.md +59 -0
- package/dist/metadata/examples/BaseInput.md +2 -0
- package/dist/metadata/examples/BaseList.md +342 -0
- package/dist/metadata/examples/Box.md +208 -0
- package/dist/metadata/examples/BreadcrumbItem.md +54 -0
- package/dist/metadata/examples/BreadcrumbsBar.md +64 -0
- package/dist/metadata/examples/Button.md +174 -0
- package/dist/metadata/examples/ButtonGroup.md +180 -0
- package/dist/metadata/examples/Checkbox.md +24 -0
- package/dist/metadata/examples/Chips.md +192 -0
- package/dist/metadata/examples/Clickable.md +31 -0
- package/dist/metadata/examples/ColorPicker.md +2 -0
- package/dist/metadata/examples/Combobox.md +438 -0
- package/dist/metadata/examples/Counter.md +188 -0
- package/dist/metadata/examples/DatePicker.md +43 -0
- package/dist/metadata/examples/Dialog.md +521 -0
- package/dist/metadata/examples/DialogContentContainer.md +18 -0
- package/dist/metadata/examples/Divider.md +50 -0
- package/dist/metadata/examples/DropdownBasicDropdown.md +479 -0
- package/dist/metadata/examples/DropdownBoxMode.md +218 -0
- package/dist/metadata/examples/EditableHeading.md +33 -0
- package/dist/metadata/examples/EditableText.md +36 -0
- package/dist/metadata/examples/EmptyState.md +192 -0
- package/dist/metadata/examples/ExpandCollapse.md +77 -0
- package/dist/metadata/examples/Flex.md +916 -0
- package/dist/metadata/examples/Heading.md +124 -0
- package/dist/metadata/examples/HiddenText.md +8 -0
- package/dist/metadata/examples/Icon.md +67 -0
- package/dist/metadata/examples/IconButton.md +141 -0
- package/dist/metadata/examples/Info.md +80 -0
- package/dist/metadata/examples/Label.md +109 -0
- package/dist/metadata/examples/Link.md +52 -0
- package/dist/metadata/examples/List.md +125 -0
- package/dist/metadata/examples/ListItem.md +42 -0
- package/dist/metadata/examples/Loader.md +148 -0
- package/dist/metadata/examples/Menu.md +141 -0
- package/dist/metadata/examples/MenuButton.md +127 -0
- package/dist/metadata/examples/MenuDivider.md +35 -0
- package/dist/metadata/examples/MenuGridItem.md +65 -0
- package/dist/metadata/examples/MenuItem.md +98 -0
- package/dist/metadata/examples/MenuItemButton.md +42 -0
- package/dist/metadata/examples/MenuTitle.md +25 -0
- package/dist/metadata/examples/ModalBasicLayout.md +400 -0
- package/dist/metadata/examples/ModalMediaLayout.md +240 -0
- package/dist/metadata/examples/ModalSideBySideLayout.md +313 -0
- package/dist/metadata/examples/MultiStepIndicator.md +189 -0
- package/dist/metadata/examples/NumberField.md +68 -0
- package/dist/metadata/examples/ProgressBar.md +152 -0
- package/dist/metadata/examples/RadioButton.md +41 -0
- package/dist/metadata/examples/Search.md +24 -0
- package/dist/metadata/examples/Skeleton.md +161 -0
- package/dist/metadata/examples/Slider.md +109 -0
- package/dist/metadata/examples/SplitButton.md +120 -0
- package/dist/metadata/examples/Steps.md +106 -0
- package/dist/metadata/examples/Table.md +449 -0
- package/dist/metadata/examples/Tabs.md +241 -0
- package/dist/metadata/examples/Text.md +188 -0
- package/dist/metadata/examples/TextArea.md +28 -0
- package/dist/metadata/examples/TextField.md +119 -0
- package/dist/metadata/examples/TextWithHighlight.md +2 -0
- package/dist/metadata/examples/ThemeProvider.md +47 -0
- package/dist/metadata/examples/Tipseen.md +111 -0
- package/dist/metadata/examples/Toast.md +127 -0
- package/dist/metadata/examples/Toggle.md +38 -0
- package/dist/metadata/examples/Tooltip.md +53 -0
- package/dist/metadata/examples/VirtualizedGrid.md +54 -0
- package/dist/metadata/examples/VirtualizedList.md +50 -0
- package/dist/metadata/examples/useGridKeyboardNavigationContext.md +61 -0
- package/dist/mocked_classnames/scripts/build-all-metadata.d.ts +1 -0
- package/dist/mocked_classnames/scripts/extract-accessibility.d.ts +4 -0
- package/dist/mocked_classnames/scripts/extract-examples.d.ts +3 -0
- package/dist/scripts/build-all-metadata.d.ts +1 -0
- package/dist/scripts/extract-accessibility.d.ts +4 -0
- package/dist/scripts/extract-examples.d.ts +3 -0
- package/package.json +12 -10
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# Storybook Code Examples
|
|
2
|
+
|
|
3
|
+
## Types
|
|
4
|
+
|
|
5
|
+
```tsx
|
|
6
|
+
<Flex direction="column" gap="large" align="start">
|
|
7
|
+
<Flex gap="large">
|
|
8
|
+
<EditableHeading id="h1-light" aria-label="H1 light heading" type="h1" weight="light" value="H1 Light" />
|
|
9
|
+
<EditableHeading id="h1-normal" aria-label="H1 normal heading" type="h1" weight="normal" value="H1 Normal" />
|
|
10
|
+
<EditableHeading id="h1-medium" aria-label="H1 medium heading" type="h1" weight="medium" value="H1 Medium" />
|
|
11
|
+
<EditableHeading id="h1-bold" aria-label="H1 bold heading" type="h1" weight="bold" value="H1 Bold" />
|
|
12
|
+
</Flex>
|
|
13
|
+
<Flex gap="large">
|
|
14
|
+
<EditableHeading id="h2-light" aria-label="H2 light heading" type="h2" weight="light" value="H2 Light" />
|
|
15
|
+
<EditableHeading id="h2-normal" aria-label="H2 normal heading" type="h2" weight="normal" value="H2 Normal" />
|
|
16
|
+
<EditableHeading id="h2-medium" aria-label="H2 medium heading" type="h2" weight="medium" value="H2 Medium" />
|
|
17
|
+
<EditableHeading id="h2-bold" aria-label="H2 bold heading" type="h2" weight="bold" value="H2 Bold" />
|
|
18
|
+
</Flex>
|
|
19
|
+
<Flex gap="large">
|
|
20
|
+
<EditableHeading id="h3-light" aria-label="H3 light heading" type="h3" weight="light" value="H3 Light" />
|
|
21
|
+
<EditableHeading id="h3-normal" aria-label="H3 normal heading" type="h3" weight="normal" value="H3 Normal" />
|
|
22
|
+
<EditableHeading id="h3-medium" aria-label="H3 medium heading" type="h3" weight="medium" value="H3 Medium" />
|
|
23
|
+
<EditableHeading id="h3-bold" aria-label="H3 bold heading" type="h3" weight="bold" value="H3 Bold" />
|
|
24
|
+
</Flex>
|
|
25
|
+
</Flex>
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
## WithPlaceholder
|
|
29
|
+
|
|
30
|
+
```tsx
|
|
31
|
+
<EditableHeading id="with-placeholder" aria-label="Editable heading with placeholder" value="Clear heading to see placeholder" placeholder="Enter your heading here..." />
|
|
32
|
+
```
|
|
33
|
+
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# Storybook Code Examples
|
|
2
|
+
|
|
3
|
+
## Types
|
|
4
|
+
|
|
5
|
+
```tsx
|
|
6
|
+
<Flex direction="column" gap="large" align="start">
|
|
7
|
+
<Flex gap="large">
|
|
8
|
+
<EditableText aria-label="Text1 normal editable text" type="text1" weight="normal" value="Text1 Normal" />
|
|
9
|
+
<EditableText aria-label="Text1 medium editable text" type="text1" weight="medium" value="Text1 Medium" />
|
|
10
|
+
<EditableText aria-label="Text1 bold editable text" type="text1" weight="bold" value="Text1 Bold" />
|
|
11
|
+
</Flex>
|
|
12
|
+
<Flex gap="large">
|
|
13
|
+
<EditableText aria-label="Text2 normal editable text" type="text2" weight="normal" value="Text2 Normal" />
|
|
14
|
+
<EditableText aria-label="Text2 medium editable text" type="text2" weight="medium" value="Text2 Medium" />
|
|
15
|
+
<EditableText aria-label="Text2 bold editable text" type="text2" weight="bold" value="Text2 Bold" />
|
|
16
|
+
</Flex>
|
|
17
|
+
<Flex gap="large">
|
|
18
|
+
<EditableText aria-label="Text3 normal editable text" type="text3" weight="normal" value="Text3 Normal" />
|
|
19
|
+
<EditableText aria-label="Text3 medium editable text" type="text3" weight="medium" value="Text3 Medium" />
|
|
20
|
+
</Flex>
|
|
21
|
+
</Flex>
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
## Multiline
|
|
25
|
+
|
|
26
|
+
```tsx
|
|
27
|
+
<EditableText aria-label="Multiline editable text" type="text1" weight="normal" multiline value={`This is a multiline
|
|
28
|
+
here's the second line`} />
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
## WithPlaceholder
|
|
32
|
+
|
|
33
|
+
```tsx
|
|
34
|
+
<EditableText aria-label="Editable text with placeholder" value="Clear text to see placeholder" placeholder="Enter your text here..." />
|
|
35
|
+
```
|
|
36
|
+
|
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
# Storybook Code Examples
|
|
2
|
+
|
|
3
|
+
## Overview
|
|
4
|
+
|
|
5
|
+
```tsx
|
|
6
|
+
<EmptyState title="The title should be concise and reflect the purpose" description="This optional paragraph should be use to extend the title. Keep it short and to the point. For longer texts add a link below." visual={<img src={emptyStateImage} alt="No items found" width={280} height={184} />} mainAction={{
|
|
7
|
+
text: "Main Action",
|
|
8
|
+
onClick: () => {
|
|
9
|
+
console.log("Main action clicked");
|
|
10
|
+
}
|
|
11
|
+
}} supportingAction={{
|
|
12
|
+
text: "Read more",
|
|
13
|
+
href: "#",
|
|
14
|
+
onClick: () => {
|
|
15
|
+
console.log("Supporting action clicked");
|
|
16
|
+
}
|
|
17
|
+
}} {...args} />
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
## Default
|
|
21
|
+
|
|
22
|
+
```tsx
|
|
23
|
+
<EmptyState title="Visualize data from multiple boards" description="Use charts, timelines, and other widgets to see your data clearly." visual={<img src={emptyStateImage} alt="No items found" width={280} height={184} />} mainAction={{
|
|
24
|
+
text: "Add your first widget",
|
|
25
|
+
onClick: () => {
|
|
26
|
+
console.log("Main action clicked");
|
|
27
|
+
}
|
|
28
|
+
}} supportingAction={{
|
|
29
|
+
text: "Read more",
|
|
30
|
+
href: "#",
|
|
31
|
+
onClick: () => {
|
|
32
|
+
console.log("Supporting action clicked");
|
|
33
|
+
}
|
|
34
|
+
}} {...args} />
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
## Without title
|
|
38
|
+
|
|
39
|
+
```tsx
|
|
40
|
+
<EmptyState description="No data available yet. Add some items to get started." visual={<img src={emptyStateImage} alt="No data available" width={280} height={184} />} mainAction={{
|
|
41
|
+
text: "Add item",
|
|
42
|
+
onClick: () => {
|
|
43
|
+
console.log("Main action clicked");
|
|
44
|
+
}
|
|
45
|
+
}} supportingAction={{
|
|
46
|
+
text: "Read more",
|
|
47
|
+
href: "#",
|
|
48
|
+
onClick: () => {
|
|
49
|
+
console.log("Supporting action clicked");
|
|
50
|
+
}
|
|
51
|
+
}} {...args} />
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
## Compact
|
|
55
|
+
|
|
56
|
+
```tsx
|
|
57
|
+
<EmptyState title="Visualize data from multiple boards" description="Use charts, timelines, and other widgets to see your data clearly." visual={<img src={emptyStateImage} alt="No notifications" width={280} height={184} />} layout="compact" mainAction={{
|
|
58
|
+
text: "Add your first widget",
|
|
59
|
+
onClick: () => {
|
|
60
|
+
console.log("Main action clicked");
|
|
61
|
+
}
|
|
62
|
+
}} supportingAction={{
|
|
63
|
+
text: "Read more",
|
|
64
|
+
href: "#",
|
|
65
|
+
onClick: () => {
|
|
66
|
+
console.log("Supporting action clicked");
|
|
67
|
+
}
|
|
68
|
+
}} {...args} />
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
## With button supporting action
|
|
72
|
+
|
|
73
|
+
```tsx
|
|
74
|
+
<EmptyState title="No files uploaded" description="Upload files to share with your team members." visual={<img src={emptyStateImage} alt="No files uploaded" width={280} height={184} />} mainAction={{
|
|
75
|
+
kind: "primary",
|
|
76
|
+
text: "Upload files",
|
|
77
|
+
leftIcon: Update,
|
|
78
|
+
onClick: () => {
|
|
79
|
+
console.log("Main action clicked");
|
|
80
|
+
}
|
|
81
|
+
}} supportingAction={{
|
|
82
|
+
text: "Import from drive",
|
|
83
|
+
leftIcon: Download,
|
|
84
|
+
onClick: () => {
|
|
85
|
+
console.log("Supporting action clicked");
|
|
86
|
+
}
|
|
87
|
+
}} {...args} />
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
## With disabled actions
|
|
91
|
+
|
|
92
|
+
```tsx
|
|
93
|
+
<EmptyState title="Processing data" description="Your data is being processed. This might take a few minutes." visual={<img src={emptyStateImage} alt="Processing data" width={280} height={184} />} mainAction={{
|
|
94
|
+
kind: "secondary",
|
|
95
|
+
text: "Refresh",
|
|
96
|
+
disabled: true,
|
|
97
|
+
loading: true,
|
|
98
|
+
onClick: () => {
|
|
99
|
+
console.log("Main action clicked");
|
|
100
|
+
}
|
|
101
|
+
}} supportingAction={{
|
|
102
|
+
text: "Cancel",
|
|
103
|
+
disabled: true,
|
|
104
|
+
onClick: () => {
|
|
105
|
+
console.log("Supporting action clicked");
|
|
106
|
+
}
|
|
107
|
+
}} {...args} />
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
## Actions comparison
|
|
111
|
+
|
|
112
|
+
```tsx
|
|
113
|
+
<Flex direction="row" gap="large">
|
|
114
|
+
<EmptyState title="Your favorites are empty" description="Add boards, docs, or dashboards to your favorites for quick access." visual={<img src={emptyStateImage} alt="No items found" width={280} height={184} />} mainAction={{
|
|
115
|
+
kind: "secondary",
|
|
116
|
+
text: "Add favorites",
|
|
117
|
+
onClick: () => {
|
|
118
|
+
console.log("First view - Add item clicked");
|
|
119
|
+
}
|
|
120
|
+
}} />
|
|
121
|
+
<EmptyState title="Your favorites are empty" description="Add boards, docs, or dashboards to your favorites for quick access." visual={<img src={emptyStateImage} alt="No items found" width={280} height={184} />} mainAction={{
|
|
122
|
+
kind: "primary",
|
|
123
|
+
text: "Add favorites",
|
|
124
|
+
onClick: () => {
|
|
125
|
+
console.log("Second view - View details clicked");
|
|
126
|
+
}
|
|
127
|
+
}} {...args} />
|
|
128
|
+
</Flex>
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
## With link only
|
|
132
|
+
|
|
133
|
+
```tsx
|
|
134
|
+
<EmptyState title="This workspace is empty" description='To get started, click the "+" above, then click "add new board".' supportingAction={{
|
|
135
|
+
href: "https://example.com/help",
|
|
136
|
+
text: "Read more"
|
|
137
|
+
}} {...args} />
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
## With two buttons
|
|
141
|
+
|
|
142
|
+
```tsx
|
|
143
|
+
<EmptyState title="This workspace is empty" description="Get started by choosing a board template or creating a board from scratch." mainAction={{
|
|
144
|
+
kind: "secondary",
|
|
145
|
+
text: "Browse templates",
|
|
146
|
+
onClick: () => {
|
|
147
|
+
console.log("Main action clicked");
|
|
148
|
+
}
|
|
149
|
+
}} supportingAction={{
|
|
150
|
+
kind: "tertiary",
|
|
151
|
+
text: "Start from scratch",
|
|
152
|
+
onClick: () => {
|
|
153
|
+
console.log("Supporting action clicked");
|
|
154
|
+
}
|
|
155
|
+
}} {...args} />
|
|
156
|
+
```
|
|
157
|
+
|
|
158
|
+
## With and without title comparison
|
|
159
|
+
|
|
160
|
+
```tsx
|
|
161
|
+
<Flex direction="row" gap="large" justify="space-between" style={{
|
|
162
|
+
width: "100%"
|
|
163
|
+
}}>
|
|
164
|
+
<EmptyState title="Create your first Gantt chart" description="Gantt charts keep your projects organized." mainAction={{
|
|
165
|
+
kind: "secondary",
|
|
166
|
+
text: "Connect boards to start",
|
|
167
|
+
onClick: () => {
|
|
168
|
+
console.log("Main action clicked");
|
|
169
|
+
}
|
|
170
|
+
}} />
|
|
171
|
+
<EmptyState description="Create your first Gantt chart" mainAction={{
|
|
172
|
+
kind: "secondary",
|
|
173
|
+
text: "Connect boards to start",
|
|
174
|
+
onClick: () => {
|
|
175
|
+
console.log("Main action clicked");
|
|
176
|
+
}
|
|
177
|
+
}} {...args} />
|
|
178
|
+
</Flex>
|
|
179
|
+
```
|
|
180
|
+
|
|
181
|
+
## With action element props
|
|
182
|
+
|
|
183
|
+
```tsx
|
|
184
|
+
<EmptyState title="No notifications" description="You're all caught up! Check back later for new notifications." visual={<img src={emptyStateImage} alt="No notifications" width={280} height={184} />} mainAction={<Button kind="secondary" onClick={() => {
|
|
185
|
+
console.log("Main action clicked");
|
|
186
|
+
}}>
|
|
187
|
+
Check notifications
|
|
188
|
+
</Button>} supportingAction={<Link href="#" text="Manage notification settings" onClick={() => {
|
|
189
|
+
console.log("Supporting action clicked");
|
|
190
|
+
}} />} {...args} />
|
|
191
|
+
```
|
|
192
|
+
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
# Storybook Code Examples
|
|
2
|
+
|
|
3
|
+
## Overview
|
|
4
|
+
|
|
5
|
+
```tsx
|
|
6
|
+
return <div style={{
|
|
7
|
+
width: "300px"
|
|
8
|
+
}}>
|
|
9
|
+
<ExpandCollapse title="Expand collapse" {...args}>
|
|
10
|
+
<Text type="text2" maxLines={2}>
|
|
11
|
+
Insert here any component that you want, here is a robot for you
|
|
12
|
+
</Text>
|
|
13
|
+
<Icon type="svg" icon={Robot} size={40} />
|
|
14
|
+
</ExpandCollapse>
|
|
15
|
+
</div>;
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
## OpenByDefault
|
|
19
|
+
|
|
20
|
+
```tsx
|
|
21
|
+
<div style={{
|
|
22
|
+
width: "300px"
|
|
23
|
+
}}>
|
|
24
|
+
<ExpandCollapse title="Open by default" defaultOpenState>
|
|
25
|
+
<Text type="text2" maxLines={2}>
|
|
26
|
+
Insert here any component that you want
|
|
27
|
+
</Text>
|
|
28
|
+
</ExpandCollapse>
|
|
29
|
+
</div>
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
## ControlledOpenState
|
|
33
|
+
|
|
34
|
+
```tsx
|
|
35
|
+
const [open, setOpen] = useState(false);
|
|
36
|
+
return <div style={{
|
|
37
|
+
width: "300px"
|
|
38
|
+
}}>
|
|
39
|
+
<ExpandCollapse title="Controlled open state" open={open} onClick={() => setOpen(prevState => !prevState)}>
|
|
40
|
+
<Text type="text2" maxLines={2}>
|
|
41
|
+
Insert here any component that you want
|
|
42
|
+
</Text>
|
|
43
|
+
</ExpandCollapse>
|
|
44
|
+
</div>;
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
## CustomHeaderRenderer
|
|
48
|
+
|
|
49
|
+
```tsx
|
|
50
|
+
const ExpandCollapseCustomHeadingComponent = () => {
|
|
51
|
+
return <Heading type="h3">Any component you want</Heading>;
|
|
52
|
+
};
|
|
53
|
+
return <div style={{
|
|
54
|
+
width: "300px"
|
|
55
|
+
}}>
|
|
56
|
+
<ExpandCollapse headerComponentRenderer={ExpandCollapseCustomHeadingComponent}>
|
|
57
|
+
<Text type="text2" maxLines={2}>
|
|
58
|
+
Insert here any component that you want
|
|
59
|
+
</Text>
|
|
60
|
+
</ExpandCollapse>
|
|
61
|
+
</div>;
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
## WithoutBorders
|
|
65
|
+
|
|
66
|
+
```tsx
|
|
67
|
+
<div style={{
|
|
68
|
+
width: "300px"
|
|
69
|
+
}}>
|
|
70
|
+
<ExpandCollapse hideBorder title="Without borders">
|
|
71
|
+
<Text type="text2" maxLines={2}>
|
|
72
|
+
Insert here any component that you want
|
|
73
|
+
</Text>
|
|
74
|
+
</ExpandCollapse>
|
|
75
|
+
</div>
|
|
76
|
+
```
|
|
77
|
+
|