Components
Separator
A separator element accessible to screen readers.
Anatomy#
Import the component and use it as a single part:
import { Separator } from '@egoist/solid-base/separator';
<Separator />;API reference#
<Separator>
A separator element accessible to screen readers. Renders a <div> element.
PropTypeDefault
orientationOrientation'horizontal'The orientation of the separator.
classstring | ClassValue | ((state: State) => ClassValue)—CSS class applied to the element, or a function that returns a class based on the component's state.
styleJSX.CSSProperties | string | ((state: State) => JSX.CSSProperties | string)—Style applied to the element, or a function that returns a style based on the component's state.
renderkeyof JSX.IntrinsicElements | ((props: HTMLProps, state: State) => JSX.Element)—Allows you to replace the component's HTML element with a different tag, or compose it with another component.
Accepts a tag name, or a function that receives the props to spread and the component's state, and returns the element to render.
Data attributeDescription
data-orientationIndicates the orientation of the separator.