import type { ComponentProps } from 'react'; import { cx } from '../classes'; /** Props for {@link Divider}. */ export interface DividerProps extends Omit, 'children'> { /** * Direction of the line. Use `'vertical'` inside an {@link Inline}. * @default 'horizontal' */ orientation?: 'horizontal' | 'vertical'; } /** * A thin separator line in the neutral border color. * Spacing around it comes from the parent's `gap`. * * @example * ```tsx * * Above * * Below * * ``` */ export function Divider({ orientation = 'horizontal', className, ...props }: DividerProps) { return (
); }