@radix-ui/themes
Version:
[](https://radix-ui.com/themes)
18 lines (13 loc) • 589 B
text/typescript
import { asChildPropDef } from '../props/as-child.prop.js';
import type { PropDef } from '../props/prop-def.js';
const sizes = ['1', '2', '3', '4', '5'] as const;
const variants = ['surface', 'classic', 'ghost'] as const;
const cardPropDefs = {
...asChildPropDef,
size: { type: 'enum', className: 'rt-r-size', values: sizes, default: '1', responsive: true },
variant: { type: 'enum', className: 'rt-variant', values: variants, default: 'surface' },
} satisfies {
size: PropDef<(typeof sizes)[number]>;
variant: PropDef<(typeof variants)[number]>;
};
export { cardPropDefs };