UNPKG

@radix-ui/themes

Version:

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

20 lines (16 loc) 610 B
import { widthPropDefs } from '../props/index.js'; import type { GetPropDefTypes, PropDef } from '../props/index.js'; const tooltipPropDefs = { content: { type: 'ReactNode', required: true }, width: widthPropDefs.width, minWidth: widthPropDefs.minWidth, maxWidth: { ...widthPropDefs.maxWidth, default: '360px' }, } satisfies { width: PropDef<string>; minWidth: PropDef<string>; maxWidth: PropDef<string>; content: PropDef<React.ReactNode>; }; type TooltipOwnProps = GetPropDefTypes<typeof tooltipPropDefs & typeof widthPropDefs>; export { tooltipPropDefs }; export type { TooltipOwnProps };