@radix-ui/themes
Version:
[](https://radix-ui.com/themes)
26 lines (22 loc) • 810 B
text/typescript
import { colorPropDef } from '../props/index.js';
import type { PropDef } from '../props/index.js';
const orientationValues = ['horizontal', 'vertical'] as const;
const sizes = ['1', '2', '3', '4'] as const;
const separatorPropDefs = {
orientation: {
type: 'enum',
className: 'rt-r-orientation',
values: orientationValues,
default: 'horizontal',
responsive: true,
},
size: { type: 'enum', className: 'rt-r-size', values: sizes, default: '1', responsive: true },
color: { ...colorPropDef.color, default: 'gray' },
decorative: { type: 'boolean', default: true },
} satisfies {
orientation: PropDef<(typeof orientationValues)[number]>;
size: PropDef<(typeof sizes)[number]>;
color: typeof colorPropDef.color;
decorative: PropDef<boolean>;
};
export { separatorPropDefs };