UNPKG

@crossed/ui

Version:

A universal & performant styling library for React Native, Next.js & React

21 lines 877 B
/** * Copyright (c) Paymium. * * This source code is licensed under the MIT license found in the * LICENSE file in the root of this projects source tree. */ import { ComponentType } from 'react'; export type SlotProps<P> = P & SlotPropsInterface<P>; export interface SlotPropsInterface<P> { Comp: ComponentType<P>; /** * When true, component expects a single child element. * Instead of rendering its own element, it will pass all props to that child, * merging together any event handling props. * When "except-style", the same behavior except Tamagui won't pass styles down from the parent, * only non-style props */ asChild?: boolean; } export declare const Slot: import("react").ForwardRefExoticComponent<Omit<SlotProps<Record<string, any>>, "ref"> & import("react").RefAttributes<unknown>>; //# sourceMappingURL=Slot.d.ts.map