Elements
Separator
A line between two blocks of content, with an optional label in the middle, like the "or" between two ways to log in.
Usage
Use the label prop to show a short word in the middle of the line. The default slot replaces the label. The separator fills the width of its parent and has no margin: space it with the layout around it, for example my-6 or a gap on the parent.
or
<KSeparator label="or" />
Without label
Without a label, the separator is a single line that screen readers announce as a separator. With a label, they read the label instead.
<KSeparator />
Customization
Use the ui prop to change the classes of each part of the separator, and class for the root element. Your classes always win: normal-case replaces the default uppercase instead of being added to it.
Or continue with
<KSeparator label="Or continue with" :ui="{ label: 'normal-case text-muted' }" />
API
Props
| Prop | Type | Default |
|---|---|---|
label | string | |
ui | { root?, line?, label? } | |
class | string |
Other attributes go to the root <div>.
Slots
| Slot | Description |
|---|---|
default | Replaces the label. |