Text divider
Separates content with a short, muted label and no line.
Default
or
<.text_divider text="or" />
Group label
Names the group of content that follows.
Today
Yesterday
<.text_divider text="Today" />
<.button label="tuist build App" variant="secondary" />
<.text_divider text="Yesterday" />
<.button label="tuist test AppTests" variant="secondary" />
Between options
Separates two ways to do the same thing.
or
<.button label="Continue with GitHub" variant="secondary" />
<.text_divider text="or" />
<.button label="Continue with email" variant="secondary" />
Guidelines
- Use a text divider to name the next group of content, such as a time period in a list.
- The text renders exactly as passed. Write it in the case you want to show.
-
It takes only
textand accepts no other attributes. For a rule with a label, use the line divider withtext.
API reference
<.text_divider>
| Attribute | Type | Default | Description |
|---|---|---|---|
|
text
Required
|
string
|
–
|
The text to display as the divider
|