UNPKG

@radix-ui/themes

Version:

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

31 lines (26 loc) 846 B
import { asChildPropDef, widthPropDefs } from '../props/index.js'; import type { GetPropDefTypes, PropDef } from '../props/index.js'; const contentSizes = ['1', '2', '3', '4'] as const; const dialogContentPropDefs = { ...asChildPropDef, size: { type: 'enum', className: 'rt-r-size', values: contentSizes, default: '3', responsive: true, }, width: widthPropDefs.width, minWidth: widthPropDefs.minWidth, maxWidth: { ...widthPropDefs.maxWidth, default: '600px' }, } satisfies { size: PropDef<(typeof contentSizes)[number]>; width: PropDef<string>; minWidth: PropDef<string>; maxWidth: PropDef<string>; }; type DialogContentOwnProps = GetPropDefTypes< typeof dialogContentPropDefs & typeof asChildPropDef & typeof widthPropDefs >; export { dialogContentPropDefs }; export type { DialogContentOwnProps };