logo-icon
STW UI

Divider

Divider will be used to separate content vertically or horizontally.

Usage

svelte
import { Divider } from 'stwui';
// OR
import Divider from 'stwui/divider'; // for tree shaking

With Position

Divider
Divider
Divider

Pass What You Want

Divider

Divider Props

position 'left' | 'center' | 'right' center

Divider Slots

label <Divider.Label slot="label" />
icon <Divider.Icon slot="icon" />
default

Divider.Label Slots

default

Divider.Icon Props

data string (IconData)
viewBox string 0 0 24 24
size string 24px
width string 24px
height string 24px
color string currentColor
stroke string | undefined
fill string currentColor

Divider Class Identifiers

stwui-divider
stwui-divider-icon
stwui-divider-label