@radix-ui/themes
Version:
[](https://radix-ui.com/themes)
20 lines (15 loc) • 692 B
text/typescript
import { colorPropDef } from '../../props/color.prop.js';
import { highContrastPropDef } from '../../props/high-contrast.prop.js';
import type { PropDef } from '../../props/prop-def.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 };