import { Separator } from '../ui/separator'; import { defineWebComponent } from './define'; interface Props extends Record { /** `horizontal` (default, block + full-width) or `vertical` (a rule inside a * flex/grid row — it stretches to the row height). */ orientation?: 'horizontal' | 'vertical'; } /** * `` — a themed divider between groups of content (toolbar * sections, menu groups, header/sidebar splits). Carries `role="separator"`. * Restyle via `::part(separator)`. * * ```html * *
* AB *
* ``` */ defineWebComponent('kai-separator', { orientation: 'horizontal', }, (props) => { const vertical = () => props.orientation === 'vertical'; return ( <> {/* The host owns its layout box: a horizontal rule is block + full-width; a vertical rule is an inline-block flex item that stretches to the row. */} ); });