// // Copyright 2026 DXOS.org // import React from 'react'; import { recipes } from '../../recipes.ts'; import { composable, composableProps } from '../../util/slots.ts'; export type SeparatorOrientation = 'horizontal' | 'vertical'; export type SeparatorProps = { orientation?: SeparatorOrientation; /** A purely visual rule, hidden from assistive tech (e.g. between listbox options, which admit no separator role). */ decorative?: boolean; }; /** A 1px rule in the separator colour: horizontal across its track, or vertical and half a control tall in a row. */ export const Separator = composable( ({ orientation = 'horizontal', decorative, ...props }, forwardedRef) => { const { className, ...rest } = composableProps(props, { classNames: recipes.separator() }); return (
); }, ); Separator.displayName = 'Separator';