Lapikit

Separator component

Separator

Displays a simple dividing line, customizable in orientation, color, thickness and position. Ideal for visually structuring sections of an interface.

Examples of separator

Base

Minimal use of component with default values. Displays a standard horizontal line.

Orientation

Allows you to display a vertical separator by setting the orientation. Useful in column layouts or sidebars.

Color

Customize the color of the separator using the color prop. You can use a color name, a CSS variable or a hexadecimal code.



Inset

Adds a horizontal indent (left/right) when the separator is horizontal. Ideal for preventing it from touching the edges of a container.

Opacity

Shows how to play with transparency via CSS classes or in combination with prop color. Useful for softening visual separation.



Size

Controls the thickness of the separator via prop thickness. Perfect for accentuating or softening the demarcation depending on use.

API Reference

propstypedescriptiondefaulttype_extend
ref $bindableHTMLElementDirect access to DOM elementundefined
isenumMakes the component <hr> or <div>.hrhr | div
darkbooleanEnable dark theme for component.false
lightbooleanEnable light theme for the component.false
colorstringApplies a custom color of separator.undefined
insetbooleanApplies a horizontal indentation for horizontal separatorsfalse
thicknessstringChecks separator thicknessundefined
orientationenumDefines separator orientationundefinedhorizontal | vertical

Variables CSS

variabledefaultdescription
–-separator-color–-kit-scrimColor of separator
–-separator-opacity0.12Opacity of separator

To organize your data, combine Separators with List for greater legibility.

©2025 Lapikit.

Made with by Nycolaide