@atom-learning/components 2.28.0-beta.0 → 2.28.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/CHANGELOG.md +31 -0
- package/dist/components/accordion/AccordionContent.js +1 -1
- package/dist/components/accordion/AccordionItem.js +1 -1
- package/dist/components/accordion/AccordionTrigger.d.ts +4 -5
- package/dist/components/accordion/AccordionTrigger.js +1 -1
- package/dist/components/alert-dialog/AlertDialogContent.js +1 -1
- package/dist/components/avatar/Avatar.js +1 -1
- package/dist/components/button/Button.js +1 -1
- package/dist/components/calendar/Calendar.js +1 -1
- package/dist/components/carousel/CarouselArrows.js +1 -1
- package/dist/components/carousel/CarouselSlide.js +1 -1
- package/dist/components/checkbox-field/CheckboxField.js +1 -1
- package/dist/components/chip/Chip.js +1 -1
- package/dist/components/chip/ChipGroup.js +1 -1
- package/dist/components/chip-dismissible-group/ChipDismissibleGroupRoot.js +1 -1
- package/dist/components/data-table/DataTable.d.ts +5 -0
- package/dist/components/data-table/DataTable.js +1 -1
- package/dist/components/data-table/DataTable.types.d.ts +18 -2
- package/dist/components/data-table/DataTableBody.js +1 -1
- package/dist/components/data-table/DataTableContext.d.ts +5 -10
- package/dist/components/data-table/DataTableContext.js +1 -1
- package/dist/components/data-table/DataTableDataCell.js +1 -1
- package/dist/components/data-table/DataTableRow.d.ts +1 -2
- package/dist/components/data-table/DataTableRow.js +1 -1
- package/dist/components/data-table/DataTableTable.d.ts +1 -2
- package/dist/components/data-table/drag-and-drop/DragAndDropContainer.d.ts +21 -0
- package/dist/components/data-table/drag-and-drop/DragAndDropContainer.js +1 -0
- package/dist/components/data-table/drag-and-drop/DragAndDropTable.d.ts +8 -0
- package/dist/components/data-table/drag-and-drop/DragAndDropTable.js +1 -0
- package/dist/components/data-table/drag-and-drop/DragAndDropTableBody.d.ts +5 -0
- package/dist/components/data-table/drag-and-drop/DragAndDropTableBody.js +1 -0
- package/dist/components/data-table/drag-and-drop/DraggableRow.d.ts +7 -0
- package/dist/components/data-table/drag-and-drop/DraggableRow.js +1 -0
- package/dist/components/data-table/drag-and-drop/Handle.d.ts +564 -0
- package/dist/components/data-table/drag-and-drop/Handle.js +1 -0
- package/dist/components/data-table/drag-and-drop/index.d.ts +4 -0
- package/dist/components/data-table/usePagination.d.ts +8 -0
- package/dist/components/data-table/usePagination.js +1 -0
- package/dist/components/data-table/useSorting.d.ts +9 -0
- package/dist/components/data-table/useSorting.js +1 -0
- package/dist/components/dialog/DialogContent.js +1 -1
- package/dist/components/dismissible/DismissibleRoot.js +1 -1
- package/dist/components/dismissible/DismissibleTrigger.js +1 -1
- package/dist/components/dropdown-menu/DropdownMenuLinkItem.js +1 -1
- package/dist/components/field-wrapper/FieldDescription.js +1 -1
- package/dist/components/field-wrapper/InlineFieldWrapper.js +1 -1
- package/dist/components/file-input/FileInput.js +1 -1
- package/dist/components/grid/Grid.js +1 -1
- package/dist/components/icon/Icon.js +1 -1
- package/dist/components/inline-message/InlineMessage.js +1 -1
- package/dist/components/label/Label.js +1 -1
- package/dist/components/link/Link.js +1 -1
- package/dist/components/markdown-content/components/MarkdownEmphasis.js +1 -1
- package/dist/components/markdown-content/components/MarkdownHeading.js +1 -1
- package/dist/components/markdown-content/components/MarkdownImage.js +1 -1
- package/dist/components/markdown-content/components/MarkdownInlineCode.js +1 -1
- package/dist/components/markdown-content/components/MarkdownLink.js +1 -1
- package/dist/components/markdown-content/components/MarkdownListItem.js +1 -1
- package/dist/components/markdown-content/components/MarkdownParagraph.js +1 -1
- package/dist/components/markdown-content/components/MarkdownStrong.js +1 -1
- package/dist/components/markdown-content/components/MarkdownThematicBreak.js +1 -1
- package/dist/components/navigation/NavigationMenuDropdownContent.js +1 -1
- package/dist/components/navigation/NavigationMenuLink.js +1 -1
- package/dist/components/notification-badge/NotificationBadge.js +1 -1
- package/dist/components/number-input/NumberInput.js +1 -1
- package/dist/components/number-input-field/NumberInputField.js +1 -1
- package/dist/components/popover/PopoverContent.js +1 -1
- package/dist/components/radio-button/RadioButton.js +1 -1
- package/dist/components/radio-button-field/RadioButtonField.js +1 -1
- package/dist/components/radio-button-field/RadioField.js +1 -1
- package/dist/components/radio-card/RadioCardGroup.js +1 -1
- package/dist/components/search-input/SearchInput.js +1 -1
- package/dist/components/select-field/SelectField.js +1 -1
- package/dist/components/sidedrawer/SidedrawerAccordion/SidedrawerAccordionContent.js +1 -1
- package/dist/components/sidedrawer/SidedrawerContent.js +1 -1
- package/dist/components/slider-field/SliderField.js +1 -1
- package/dist/components/stack-content/StackContent.js +1 -1
- package/dist/components/stepper/StepperStepBack.js +1 -1
- package/dist/components/table/Table.js +1 -1
- package/dist/components/table/TableBody.js +1 -1
- package/dist/components/table/TableHeader.js +1 -1
- package/dist/components/table/TableRow.d.ts +272 -1
- package/dist/components/table/TableRow.js +1 -1
- package/dist/components/tabs/{TabsTrigger.d.ts → TabTrigger.d.ts} +6 -3
- package/dist/components/tabs/TabTrigger.js +1 -0
- package/dist/components/tabs/Tabs.d.ts +276 -7
- package/dist/components/tabs/Tabs.js +1 -1
- package/dist/components/tabs/TabsTriggerList.d.ts +9 -5
- package/dist/components/tabs/TabsTriggerList.js +1 -1
- package/dist/components/tabs/utils.d.ts +2 -0
- package/dist/components/tabs/utils.js +1 -0
- package/dist/components/toast/Toast.js +1 -1
- package/dist/components/toast/ToastProvider.js +1 -1
- package/dist/components/toggle-group/ToggleGroupButton.js +1 -1
- package/dist/components/tooltip/TooltipContent.js +1 -1
- package/dist/components/video/Video.js +1 -1
- package/dist/docgen.json +1 -1
- package/dist/docs/Accordion.mdx +7 -56
- package/dist/docs/DataTable.mdx +37 -1
- package/dist/docs/Tabs.mdx +57 -31
- package/dist/index.cjs.js +1 -1
- package/dist/utilities/hooks/useCallbackRef.js +1 -1
- package/package.json +6 -3
- package/dist/components/tabs/TabsContent.d.ts +0 -267
- package/dist/components/tabs/TabsContent.js +0 -1
- package/dist/components/tabs/TabsTrigger.js +0 -1
package/dist/docs/Accordion.mdx
CHANGED
|
@@ -5,29 +5,23 @@ description: A vertically stacked group of interactive headings that reveal an a
|
|
|
5
5
|
category: Layout
|
|
6
6
|
---
|
|
7
7
|
|
|
8
|
-
Functionality based on the [`Accordion`](https://radix-ui.com/primitives/docs/components/accordion) radix component.
|
|
9
|
-
|
|
10
|
-
Implements experimental ColorScheme component to allow multiple colour setups.
|
|
11
|
-
|
|
12
8
|
The Accordion exports 4 components that combine to make the `Accordion`. The parent Accordion contains `Accordion.Item` components, which themselves must contain `Accordion.Trigger` and `Accordion.Content`.
|
|
13
9
|
|
|
14
10
|
The `Accordion.Trigger` has been simplified to include a chevron icon. Generally, you would only want to render text inside the rest.
|
|
15
11
|
|
|
16
12
|
Default styling has been applied to `Accordion.Trigger`, but `Accordion.Content` is an empty container without styling. Should only text be placed inside, it is highly advisable to apply spacing to align with the styling of the rest of the Accordion. This can be done with either the `css` property, or by placing any other components inside the `Accordion.Content`.
|
|
17
13
|
|
|
14
|
+
You can Read more about the underlying UI component on the [Radix UI documentation site](https://radix-ui.com/primitives/docs/components/accordion).
|
|
15
|
+
|
|
18
16
|
```tsx preview
|
|
19
17
|
<Accordion type="single" defaultValue="1">
|
|
20
18
|
<Accordion.Item value="1">
|
|
21
|
-
<Accordion.Trigger>Accordion Header 1</Accordion.Trigger>
|
|
22
|
-
<Accordion.Content css={{ p: '$
|
|
23
|
-
<Text>Accordion content 1</Text>
|
|
24
|
-
</Accordion.Content>
|
|
19
|
+
<Accordion.Trigger theme="light">Accordion Header 1</Accordion.Trigger>
|
|
20
|
+
<Accordion.Content css={{ p: '$4' }}>Accordion content 1</Accordion.Content>
|
|
25
21
|
</Accordion.Item>
|
|
26
22
|
<Accordion.Item value="2">
|
|
27
23
|
<Accordion.Trigger>Accordion Header 2</Accordion.Trigger>
|
|
28
|
-
<Accordion.Content css={{ p: '$
|
|
29
|
-
<Text>Accordion content 2</Text>
|
|
30
|
-
</Accordion.Content>
|
|
24
|
+
<Accordion.Content css={{ p: '$4' }}>Accordion content 2</Accordion.Content>
|
|
31
25
|
</Accordion.Item>
|
|
32
26
|
</Accordion>
|
|
33
27
|
```
|
|
@@ -46,49 +40,6 @@ Accordions can have `type` as either `single` or `multiple`. This changes how ma
|
|
|
46
40
|
|
|
47
41
|
Note: if `multiple`, `value` and `defaultValue` must be in an array. Even if you want just one item to be visible initially, you must pass something like `defaultValue={['name']}`
|
|
48
42
|
|
|
49
|
-
##
|
|
43
|
+
## Themes
|
|
50
44
|
|
|
51
|
-
|
|
52
|
-
The corresponding `Accordion.Content` component's content will be, in this case, permanently in its original state.
|
|
53
|
-
|
|
54
|
-
```tsx preview live
|
|
55
|
-
<Accordion type="single" defaultValue="1">
|
|
56
|
-
<Accordion.Item value="1" disabled>
|
|
57
|
-
<Accordion.Trigger>Accordion Header 1</Accordion.Trigger>
|
|
58
|
-
<Accordion.Content css={{ p: '$3' }}>
|
|
59
|
-
<Text>Accordion content 1</Text>
|
|
60
|
-
</Accordion.Content>
|
|
61
|
-
</Accordion.Item>
|
|
62
|
-
<Accordion.Item value="2">
|
|
63
|
-
<Accordion.Trigger>Accordion Header 2</Accordion.Trigger>
|
|
64
|
-
<Accordion.Content css={{ p: '$3' }}>
|
|
65
|
-
<Text>Accordion content 2</Text>
|
|
66
|
-
</Accordion.Content>
|
|
67
|
-
</Accordion.Item>
|
|
68
|
-
</Accordion>
|
|
69
|
-
```
|
|
70
|
-
|
|
71
|
-
## Color Scheme
|
|
72
|
-
|
|
73
|
-
You can pass in a `colorScheme` object to the Accordion.Trigger to customise the colours of the component.
|
|
74
|
-
Defaults to `{ accent: "slate", interactive: "loContrast1"}`
|
|
75
|
-
ColorScheme is experimental and has been implemented only locally but you can read more about how it
|
|
76
|
-
currently works and available options [on the repository's github](https://github.com/Atom-Learning/components/tree/main/color-scheme#readme).
|
|
77
|
-
|
|
78
|
-
```tsx preview live
|
|
79
|
-
<Accordion type="single" defaultValue="1">
|
|
80
|
-
<Accordion.Item value="1">
|
|
81
|
-
<Accordion.Trigger
|
|
82
|
-
colorScheme={{
|
|
83
|
-
accent: 'blue',
|
|
84
|
-
interactive: 'hiContrast2'
|
|
85
|
-
}}
|
|
86
|
-
>
|
|
87
|
-
Accordion Header 1
|
|
88
|
-
</Accordion.Trigger>
|
|
89
|
-
<Accordion.Content css={{ p: '$3' }}>
|
|
90
|
-
<Text>Accordion content 1</Text>
|
|
91
|
-
</Accordion.Content>
|
|
92
|
-
</Accordion.Item>
|
|
93
|
-
</Accordion>
|
|
94
|
-
```
|
|
45
|
+
`Accordion.Trigger` can have a `theme` property. Possible values are `primaryDark` and `light`. The default is `primaryDark`.
|
package/dist/docs/DataTable.mdx
CHANGED
|
@@ -15,7 +15,7 @@ The root `DataTable` component manages the table's state and exposes it via the
|
|
|
15
15
|
|
|
16
16
|
Other `DataTable` components call `useDataTable` and provide useful default implementations for common patterns. For example, `DataTable.Head` will render a header for every column defined in the parent `DataTable`. `DataTable.Body` will render a row for every data item. `DataTable.Table` combines both `DataTable.Head` and `DataTable.Body`.
|
|
17
17
|
|
|
18
|
-
### Using defaults vs
|
|
18
|
+
### Using defaults vs rolling your own
|
|
19
19
|
|
|
20
20
|
Here's a simple config for some table data and columns.
|
|
21
21
|
|
|
@@ -241,3 +241,39 @@ If `DataTable`'s `isSortable` state is `true`, then `DataTable.Header` will be c
|
|
|
241
241
|
### Pagination
|
|
242
242
|
|
|
243
243
|
`DataTable.Pagination` can be passed as a child to `DataTable` to render the pagination UI and configure the parent `DataTable` to paginate its data. Note: there is currently a bug where `DataTable` will render all rows on the initial render, even when paginated. There is no visible effect, but it can cause performance issues on large tables. The workaround for this is to pass an `initialState` prop to `DataTable`. E.g. `initialState={pagination: {pageSize: 5, pageIndex: 0}}`. This will force pagination to apply properly on the initial render. Make sure the `pagination` prop matches the config you use in `DataTable.Pagination`, as the latter will take precedence after the initial render.
|
|
244
|
+
|
|
245
|
+
### Drag and drop
|
|
246
|
+
|
|
247
|
+
The `DataTable.DragAndDropTable` can be rendered in place of `DataTable.Table` to allow users to reorder table rows via drag and drop. It takes an optional `onDragAndDrop` prop which is a function that fires when rows have been re-ordered via drag-and-drop. Use this to sync those changes with external data sources.
|
|
248
|
+
|
|
249
|
+
Note that column sorting conflicts with drag and drop behaviour. In any context where you allow drag and drop reordering, you probably want to disable column sorting (see User Sorting above). Similarly, you should probably disable pagination because users won't be able to drag rows across page boundaries.
|
|
250
|
+
|
|
251
|
+
#### Row IDs
|
|
252
|
+
|
|
253
|
+
Drag-and-drop functionality relies on each table row having a unique ID. `DataTable.DragAndDropContainer` will throw an error if your don't provide unique IDs for each row in the `data` provided to `DataTable`, so you should consider wrapping your table in an `ErrorBoundary` to reduce the impact on your user if there is a problem with your data. By default, `DataTable.DragAndDropContainer` will look for this id in an `id` property on each object in `data`. You can use the `idColumn` prop to provide the name of a different property, e.g. `userId`, that already exists on your data so that you don't have to generate new IDs just for the table. For example, you could provide data like this with no additional configuration:
|
|
254
|
+
|
|
255
|
+
```tsx
|
|
256
|
+
const data = [
|
|
257
|
+
{ name: 'chrissy', hobby: 'bare-knuckle boxing', id: 1 },
|
|
258
|
+
{ name: 'agatha', hobby: 'crossfit', id: 2 },
|
|
259
|
+
{ name: 'betty', hobby: 'acting', id: 3 }
|
|
260
|
+
]`
|
|
261
|
+
|
|
262
|
+
<DataTable data={data} columns={columns}>
|
|
263
|
+
<DataTable.DragAndDropTable onDragAndDrop={(oldIndex, newIndex, newData) => console.log(oldIndex, newIndex, newData)}/>
|
|
264
|
+
</DataTable>
|
|
265
|
+
```
|
|
266
|
+
|
|
267
|
+
Or you could provide this data and specify the id column accordingly:
|
|
268
|
+
|
|
269
|
+
```tsx
|
|
270
|
+
const data = [
|
|
271
|
+
{ name: 'chrissy', hobby: 'bare-knuckle boxing', userId: 1 },
|
|
272
|
+
{ name: 'agatha', hobby: 'crossfit', userId: 2 },
|
|
273
|
+
{ name: 'betty', hobby: 'acting', userId: 3 }
|
|
274
|
+
]`
|
|
275
|
+
|
|
276
|
+
<DataTable data={data} columns={columns}>
|
|
277
|
+
<DataTable.DragAndDropTable idColumn="userId" onDragAndDrop={(oldIndex, newIndex, newData) => console.log(oldIndex, newIndex, newData)} />
|
|
278
|
+
</DataTable>
|
|
279
|
+
```
|
package/dist/docs/Tabs.mdx
CHANGED
|
@@ -5,12 +5,10 @@ description: Tabs is a component that provides different sections of content tha
|
|
|
5
5
|
category: Layout
|
|
6
6
|
---
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
Implements experimental ColorScheme component to allow multiple colour setups.
|
|
8
|
+
The component provides a set of default styles, which can be overwritten by using the `css` prop. It is composed by combining smaller components, such as `Tabs.TriggerList`, `Tabs.Trigger`, and `Tabs.Content`.
|
|
11
9
|
|
|
12
10
|
```tsx preview
|
|
13
|
-
<Tabs defaultValue="
|
|
11
|
+
<Tabs defaultValue="tab1" css={{ height: '100px' }}>
|
|
14
12
|
<Tabs.TriggerList>
|
|
15
13
|
<Tabs.Trigger value="tab1">
|
|
16
14
|
Nested component under the Tabs.Trigger component
|
|
@@ -29,48 +27,76 @@ Implements experimental ColorScheme component to allow multiple colour setups.
|
|
|
29
27
|
</Tabs>
|
|
30
28
|
```
|
|
31
29
|
|
|
32
|
-
|
|
30
|
+
It takes a `defaultValue` prop that should match one of the triggers' `value` prop.
|
|
31
|
+
|
|
32
|
+
```tsx
|
|
33
|
+
<Tabs defaultValue="tab1">
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
It also takes a `theme` prop that should either be "light" or "dark".
|
|
37
|
+
|
|
38
|
+
```tsx
|
|
39
|
+
<Tabs theme="light"></Tabs>
|
|
40
|
+
<Tabs theme="dark"></Tabs>
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
## Tabs.TriggerList
|
|
44
|
+
|
|
45
|
+
The `Tabs.TriggerList` component simply holds the individual `Tabs.Trigger` components. It can also get custom styling via the `css` prop.
|
|
46
|
+
`Tabs.TriggerList` will automatically show `<` & `>` buttons in case the content is overshooting the available space.
|
|
33
47
|
|
|
34
|
-
|
|
35
|
-
|
|
48
|
+
The default scroll amount for the scroll buttons on the `Tabs.TriggerList` is 10% of the content width. You can set this to any percentage by setting, for example, `scrollPercentage={25}`.
|
|
49
|
+
|
|
50
|
+
## Tabs.Trigger
|
|
51
|
+
|
|
52
|
+
The `Tabs.Trigger` component holds the content that will be displayed inside the button that the user would click in order to switch tabs. In can hold either a string, or some other component. It needs to be passed a `value` prop, that would be identical to the `value` prop passed to its corresponding `Tabs.Content` component.
|
|
53
|
+
|
|
54
|
+
## Tabs.Content
|
|
55
|
+
|
|
56
|
+
The `Tabs.Content` component, as the name suggests, holds the content for that particular section of the tabs component. It takes a `value` prop that needs to match the `value` prop passed to its corresponding trigger. Its content can be any text or valid component.
|
|
57
|
+
|
|
58
|
+
## Disabled tab
|
|
59
|
+
|
|
60
|
+
A `Tabs.Trigger` component can take a `disabled` prop, which would make it unselectable. The corresponding `Tabs.Content` component's content will be, in this case, permanently hidden.
|
|
36
61
|
|
|
37
62
|
```tsx preview
|
|
38
|
-
<Tabs
|
|
63
|
+
<Tabs>
|
|
39
64
|
<Tabs.TriggerList>
|
|
40
65
|
<Tabs.Trigger value="tab1">Tab 1</Tabs.Trigger>
|
|
41
|
-
<Tabs.Trigger value="tab2"
|
|
66
|
+
<Tabs.Trigger disabled value="tab2">
|
|
42
67
|
Tab 2
|
|
43
68
|
</Tabs.Trigger>
|
|
44
69
|
</Tabs.TriggerList>
|
|
45
|
-
<Tabs.Content
|
|
46
|
-
|
|
47
|
-
</Tabs.Content>
|
|
48
|
-
<Tabs.Content css={{ p: '$3' }} value="tab2">
|
|
49
|
-
<Text>Content for tab2.</Text>
|
|
50
|
-
</Tabs.Content>
|
|
70
|
+
<Tabs.Content value="tab1">Content for tab 1</Tabs.Content>
|
|
71
|
+
<Tabs.Content value="tab2">Content for the second tab.</Tabs.Content>
|
|
51
72
|
</Tabs>
|
|
52
73
|
```
|
|
53
74
|
|
|
54
|
-
##
|
|
75
|
+
## Styling the `Tabs.TriggerList`
|
|
55
76
|
|
|
56
|
-
|
|
57
|
-
Defaults to `{ base: "slate", accent: "blue", interactive: "hiContrast1"}`
|
|
58
|
-
ColorScheme is experimental and has been implemented only locally but you can read more about how it
|
|
59
|
-
currently works and available options [on the repository's github](https://github.com/Atom-Learning/components/tree/main/color-scheme#readme).
|
|
77
|
+
The trigger list accepts an appearance property to apply uppercase to all tabs. Simply pass `appearance='uppercase'`.
|
|
60
78
|
|
|
61
|
-
```tsx preview
|
|
62
|
-
<Tabs
|
|
63
|
-
<Tabs.TriggerList
|
|
64
|
-
colorScheme={{ base: 'slate', accent: 'slate', interactive: 'hiContrast2' }}
|
|
65
|
-
>
|
|
79
|
+
```tsx preview
|
|
80
|
+
<Tabs>
|
|
81
|
+
<Tabs.TriggerList appearance="uppercase">
|
|
66
82
|
<Tabs.Trigger value="tab1">Tab 1</Tabs.Trigger>
|
|
67
83
|
<Tabs.Trigger value="tab2">Tab 2</Tabs.Trigger>
|
|
68
84
|
</Tabs.TriggerList>
|
|
69
|
-
<Tabs.Content
|
|
70
|
-
|
|
71
|
-
</Tabs.Content>
|
|
72
|
-
<Tabs.Content css={{ p: '$3' }} value="tab2">
|
|
73
|
-
<Text>Content for tab2.</Text>
|
|
74
|
-
</Tabs.Content>
|
|
85
|
+
<Tabs.Content value="tab1">Content for tab 1</Tabs.Content>
|
|
86
|
+
<Tabs.Content value="tab2">Content for the second tab.</Tabs.Content>
|
|
75
87
|
</Tabs>
|
|
76
88
|
```
|
|
89
|
+
|
|
90
|
+
## Styling the `Tabs.Trigger`
|
|
91
|
+
|
|
92
|
+
In order to style the different states of a trigger, the following CSS selectors need to be used when passed to the `css` prop:
|
|
93
|
+
|
|
94
|
+
`&:hover` to style the hover state of the trigger.
|
|
95
|
+
|
|
96
|
+
`&[data-disabled]` to style a disabled trigger.
|
|
97
|
+
|
|
98
|
+
`&[data-disabled]:hover` to style a disabled trigger's hover state.
|
|
99
|
+
|
|
100
|
+
`&[data-state="active"]` to style an active trigger.
|
|
101
|
+
|
|
102
|
+
If the content of the trigger is, say, a `<Text>` component instead of a string, you can append the `*` symbol or any other child/sibling selectors, to make sure that any nested content is styled accordingly. You can also simply style the nested child component directly via its own `css` prop.
|