UNPKG

@radix-ui/themes

Version:

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

16 lines (13 loc) 353 B
import type { PropDef } from './prop-def.js'; const asChildPropDef = { /** * Composes the component into its immediate child instead of rendering its own HTML element. * You’ll have to provide a single React Element child. */ asChild: { type: 'boolean', }, } satisfies { asChild: PropDef<boolean>; }; export { asChildPropDef };