|
1 | 1 | from dataclasses import dataclass |
| 2 | +from typing import Literal |
2 | 3 |
|
3 | 4 | from chartlets import Container |
4 | 5 |
|
5 | 6 |
|
6 | 7 | @dataclass(frozen=True) |
7 | 8 | class Divider(Container): |
8 | | - """The Divider component provides a thin, |
| 9 | + """The `Divider` component provides a thin, |
9 | 10 | unobtrusive line for grouping elements to reinforce visual hierarchy. |
10 | 11 | """ |
11 | 12 |
|
12 | | - orientation: str | None = None |
| 13 | + orientation: Literal["horizontal", "vertical"] | None = None |
13 | 14 | """The orientation. Can be `horizontal` (default) or `vertical`.""" |
14 | 15 |
|
15 | | - variant: str | None = None |
| 16 | + variant: Literal["fullWidth", "inset", "middle"] | None = None |
16 | 17 | """The variant. One of `fullWidth ` (default), `inset`, and `middle`.""" |
17 | 18 |
|
| 19 | + textAlign: Literal["left", "center", "right"] | None = None |
| 20 | + """Use the `textAlign` prop to align elements that are |
| 21 | + wrapped by the divider. One of `left`, `center` (default), and `right`. |
| 22 | + """ |
| 23 | + |
18 | 24 | flexItem: bool | None = None |
19 | 25 | """Use the `flexItem` prop to display the divider when it's being |
20 | 26 | used in a flex container. |
21 | 27 | """ |
22 | 28 |
|
23 | | - textAlign: str | None = None |
24 | | - """Use the `textAlign` prop to align elements that are |
25 | | - wrapped by the divider. One of `center` (default), `left`, and `right`. |
26 | | - """ |
|
0 commit comments