Skip to content

Separator & Kbd ​

Visually or semantically separates content. Used to display textual user input from keyboard.

Separator ​

Approximate web preview — the HarmonyOS rendering is the reference.

Label & line style ​

label with labelAlignment start | center | end; lineStyle solid | dashed | dotted; thickness.

Approximate web preview — the HarmonyOS rendering is the reference.

Kbd ​

Approximate web preview — the HarmonyOS rendering is the reference.

Sizes, keycap, combos ​

sizing sm | default | lg; variant 'outline'; SKbdGroup({ keys }).

Approximate web preview — the HarmonyOS rendering is the reference.

API ​

Extracted from the @Param / @Event / @BuilderParam declarations in the library sources.

SSeparator ​

shadcn-vue Separator: bg-border shrink-0, 1px tall (horizontal, full width) or 1px wide (vertical, full height of the parent — give the parent a height, like shadcn's h-5).

Variants: lineStyle solid | dashed | dotted, thickness, and a label cut into a horizontal line ("OR CONTINUE WITH"), placed by labelAlignment start | center | end.

PropTypeDefaultDescription
orientationSeparatorOrientation
SeparatorOrientation = 'horizontal' | 'vertical'
'horizontal'
decorativebooleantruePurely visual (hidden from accessibility). Set false when it separates meaningful groups.
lengthLength'100%'Optional explicit length; defaults to 100% of the parent along the orientation.
lineStyleSeparatorLineStyle
SeparatorLineStyle = 'solid' | 'dashed' | 'dotted'
'solid'
thicknessnumber1Line thickness in vp.
labelResourceStr | undefinedundefinedText cut into a horizontal separator.
labelAlignmentSeparatorLabelAlignment
SeparatorLabelAlignment = 'start' | 'center' | 'end'
'center'

SKbd ​

shadcn-vue Kbd: bg-muted text-muted-foreground h-5 min-w-5 rounded-sm px-1 font-sans text-xs font-medium.

Variants: sizing sm (16) | default (20) | lg (24) and variant default | outline (keycap look).

PropTypeDefaultDescription
textResourceStr | undefinedundefined
iconstring | undefinedundefinedlucide icon name, e.g. command, corner-down-left.
sizingKbdSize
KbdSize = 'sm' | 'default' | 'lg'
'default'
variantKbdVariant
KbdVariant = 'default' | 'outline'
'default'

Slots: children (trailing closure)

SKbdGroup ​

shadcn-vue KbdGroup: inline-flex items-center gap-1.

keys renders a shortcut from strings, joined by separator (none by default); well-known names (cmd / command / meta, enter / return, up / down / left / right) become icons.

PropTypeDefaultDescription
keysstring[][]
separatorstring''Text between keys, e.g. '+' or 'then'.
sizingKbdSize
KbdSize = 'sm' | 'default' | 'lg'
'default'
variantKbdVariant
KbdVariant = 'default' | 'outline'
'default'

Slots: children (trailing closure)

MIT Licensed