Separator
To implement the Separator component into your project you’ll need to add the import:
import Separator from "@kiwicom/orbit-components/lib/Separator";
After adding import to your project you can use it simply like:
<Separator />
Props
The table below contains all types of props available in the Separator component.
Name | Type | Default | Description |
---|---|---|---|
sideOffset | enum | "none" | Amount of padding expressed as spacing tokens in the opposite direction depending on the align prop. |
align | enum | "left" | The direction of indentation. If "center" then it’s indented from both sides. |
spaceAfter | enum | Additional margin-bottom after component. | |
dataTest | string | Optional prop for testing purposes. | |
type | enum | "solid" | The type of the separator. |
color | string | The color of the separator. The value should be a string with the value of a Tailwind border color class valid in Orbit. For instance: “border-blue-normal” or “border-product-normal” | |
label | React.ReactNode | The label of the separator. |
enum
sideOffset | align | type | spaceAfter |
---|---|---|---|
"none" | "left" | "solid" | "none" |
"small" - deprecated (use "300" ) | "right" | "dashed" | "smallest" |
"medium" - deprecated (use "400" ) | "center" | "dotted" | "small" |
"large" - deprecated (use "600" ) | "double" | "normal" | |
"XLarge" - deprecated (use "800" ) | "none" | "medium" | |
"XXLarge" - deprecated (use"1000" ) | "large" | ||
"300" | "largest" | ||
"400" | |||
"600" | |||
"800" | |||
"1000" |