Separator

import Separator from "@kiwicom/orbit-components/lib/Separator";
<Separator />

Props

NameTypeDefaultDescription
sideOffsetenum"none"Amount of padding expressed as spacing tokens in the opposite direction depending on the align prop.
alignenum"left"The direction of indentation. If "center" then it’s indented from both sides.
spaceAfterenumAdditional margin-bottom after component.
typeenum"solid"The type of the separator.
colorenumThe color of the separator. The value should be a string with the value of a Tailwind border color class valid in Orbit.
labelReact.ReactNodeOptional text or content displayed within the separator line
ariaHiddenbooleanIf true, hides the separator from screen readers. Use when the separator is purely decorative.

enum

sideOffsetaligntypespaceAftercolor (examples)
"none""left""solid""none""border-blue-normal"
"300""right""dashed""smallest""border-green-normal"
"400""center""dotted""small""border-red-normal"
"600""double""normal""border-ink-normal"
"800""none""medium""border-product-normal"
"1000""large"… and many more
"largest"