UNPKG

@loke/ui

Version:
21 lines (20 loc) 1.02 kB
import { Primitive } from "@loke/ui/primitive"; import { type ComponentPropsWithoutRef } from "react"; declare const ORIENTATIONS: readonly ["horizontal", "vertical"]; type Orientation = (typeof ORIENTATIONS)[number]; type PrimitiveDivProps = ComponentPropsWithoutRef<typeof Primitive.div>; interface SeparatorProps extends PrimitiveDivProps { /** * Whether or not the component is purely decorative. When true, accessibility-related attributes * are updated so that that the rendered element is removed from the accessibility tree. */ decorative?: boolean; /** * Either `vertical` or `horizontal`. Defaults to `horizontal`. */ orientation?: Orientation; } declare const Separator: import("react").ForwardRefExoticComponent<SeparatorProps & import("react").RefAttributes<HTMLDivElement>>; declare const Root: import("react").ForwardRefExoticComponent<SeparatorProps & import("react").RefAttributes<HTMLDivElement>>; export { Separator, Root, }; export type { SeparatorProps };