@radix-ui/themes
Version:
[](https://radix-ui.com/themes)
18 lines (14 loc) • 625 B
text/typescript
import { colorPropDef, highContrastPropDef } from '../props/index.js';
import type { PropDef } from '../props/index.js';
const sizes = ['1', '2', '3'] as const;
const variants = ['classic', 'surface', 'soft'] as const;
const baseCheckboxPropDefs = {
size: { type: 'enum', className: 'rt-r-size', values: sizes, default: '2', responsive: true },
variant: { type: 'enum', className: 'rt-variant', values: variants, default: 'surface' },
...colorPropDef,
...highContrastPropDef,
} satisfies {
size: PropDef<(typeof sizes)[number]>;
variant: PropDef<(typeof variants)[number]>;
};
export { baseCheckboxPropDefs };