UNPKG

@radix-ui/themes

Version:

[![Radix Themes Logo](https://radix-ui.com/social/themes.png)](https://radix-ui.com/themes)

22 lines (18 loc) 847 B
import { colorPropDef, radiusPropDef } 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 resizeValues = ['none', 'vertical', 'horizontal', 'both'] as const; // prettier-ignore const textAreaPropDefs = { size: { type: 'enum', className: 'rt-r-size', values: sizes, default: '2', responsive: true }, variant: { type: 'enum', className: 'rt-variant', values: variants, default: 'surface' }, resize: { type: 'enum', className: 'rt-r-resize', values: resizeValues, responsive: true }, ...colorPropDef, ...radiusPropDef, } satisfies { size: PropDef<(typeof sizes)[number]>; variant: PropDef<(typeof variants)[number]>; resize: PropDef<(typeof resizeValues)[number]>; }; export { textAreaPropDefs };