UEA-PRODEM
This commit is contained in:
+7
-2
@@ -10,9 +10,14 @@ interface SlotProps extends React.HTMLAttributes<HTMLElement> {
|
||||
}
|
||||
declare function createSlot(ownerName: string): React.ForwardRefExoticComponent<SlotProps & React.RefAttributes<HTMLElement>>;
|
||||
declare const Slot: React.ForwardRefExoticComponent<SlotProps & React.RefAttributes<HTMLElement>>;
|
||||
interface SlottableProps {
|
||||
type SlottableChildrenProps = {
|
||||
children: React.ReactNode;
|
||||
}
|
||||
};
|
||||
type SlottableRenderFnProps = {
|
||||
child: React.ReactNode;
|
||||
children: (slottable: React.ReactNode) => React.ReactNode;
|
||||
};
|
||||
type SlottableProps = SlottableRenderFnProps | SlottableChildrenProps;
|
||||
interface SlottableComponent extends React.FC<SlottableProps> {
|
||||
__radixId: symbol;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user