UNPKG

@radix-ui/themes

Version:

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

13 lines 605 B
import * as React from 'react'; /** * This is a helper function that is used when a component supports `asChild` * using the `Slot` component but its implementation contains nested DOM elements. * * Using it ensures if a consumer uses the `asChild` prop, the elements are in * correct order in the DOM, adopting the intended consumer `children`. */ export declare function getSubtree(options: { asChild: boolean | undefined; children: React.ReactNode; }, content: React.ReactNode | ((children: React.ReactNode) => React.ReactNode)): React.ReactNode; //# sourceMappingURL=get-subtree.d.ts.map