/** * This is a modified version of Radix Primitives' Slot component. * It supports slottable children, which is useful for components that need to * render a slot inside a slot. * * It merges the initial implementation with the one that supports multiple children. * * See https://github.com/radix-ui/primitives/blob/main/packages/react/slot/src/Slot.tsx * for the original implementation. * * See https://github.com/radix-ui/primitives/blob/12e51326c7ddc7452916aabadf7db4a45352a6bd/packages/react/slot/src/Slot.tsx * for the variant that supports multiple children. */ import * as React from "react"; interface SlotProps extends React.HTMLAttributes { children?: React.ReactNode; } declare const Slot: React.ForwardRefExoticComponent>; type SlottableProps = { child: React.ReactNode; children: (child: React.ReactNode) => React.JSX.Element; }; declare const Slottable: ({ child, children }: SlottableProps) => React.JSX.Element; declare const Root: React.ForwardRefExoticComponent>; export { Root, Slot, Slottable }; export type { SlotProps };