Skip to main content
PROYECTOVIVIANA

Separator

The props declared for Separator, generated from the types @proyecto-viviana/ui ships.

Import

import { Separator } from "@proyecto-viviana/ui";

Props

Props for Separator in @proyecto-viviana/ui
PropTypeDefaultDescription
variant'default' | 'subtle' | 'strong''default'The visual style variant. Note that `strong` currently renders as `default` — see {@link SeparatorVariant}.
size'sm' | 'md' | 'lg''md'The size/thickness of the separator.
classstring—Additional CSS class name.
slotstring | false—A slot name for the component. HTML `slot` may be `false` to omit. solidaria-components
ref((el: HTMLElement) => void) | { current?: HTMLElement | null | undefined; }—Ref for the underlying separator element. solidaria-components
idstring—The element's unique identifier. solidaria
aria-describedbystring—Identifies the element(s) that describes the separator. solidaria
aria-detailsstring—Identifies the element(s) that provide a detailed description. solidaria
aria-labelstring—An accessibility label for the separator. solidaria
aria-labelledbystring—Identifies the element(s) that labels the separator. solidaria
elementTypestring'hr'The HTML element type that will be used to render the separator. solidaria
orientation'horizontal' | 'vertical''horizontal'The orientation of the separator. solidaria

Declared in packages/viviana-ui/src/separator/index.tsx.

Props marked solidaria or solidaria-components come from the headless layer underneath and behave the same in both registers. Components that wrap a DOM element also accept that element's standard attributes, which are left out here on purpose — listing them would bury the props that are actually ours.