UNPKG

@crossed/ui

Version:

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

32 lines 2.46 kB
/** * 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. */ export { type Instance } from './useTabs'; export declare const createTabs: () => (({ children, value: valueProps, defaultValue, finalValue, onChange, variant, size, ...props }: import("react").PropsWithChildren<Partial<Pick<import("./context").TabsContext, "variant" | "size">> & import("@crossed/core").UseUncontrolledInput<import("./context").TabsContext["value"]> & import("../..").YBoxProps>) => import("react/jsx-runtime").JSX.Element) & { List: ({ children, ...props }: Omit<import("react-native").ScrollViewProps, "style">) => import("react/jsx-runtime").JSX.Element; Tab: (({ value: valueProps, children, disabled, style, ...props }: import("./Tab").TabsTabProps) => import("react/jsx-runtime").JSX.Element) & { Text: ({ style, ...props }: import("../..").ButtonTextProps) => import("react/jsx-runtime").JSX.Element; }; Panel: ({ value: valueProps, style, ...props }: import("../..").CardProps & { value: string | number; }) => import("react/jsx-runtime").JSX.Element; Indicator: ({ style }: { style?: import("@crossed/styled").CrossedMethods<any>; }) => import("react/jsx-runtime").JSX.Element; }; export declare const Tabs: (({ children, value: valueProps, defaultValue, finalValue, onChange, variant, size, ...props }: import("react").PropsWithChildren<Partial<Pick<import("./context").TabsContext, "variant" | "size">> & import("@crossed/core").UseUncontrolledInput<import("./context").TabsContext["value"]> & import("../..").YBoxProps>) => import("react/jsx-runtime").JSX.Element) & { List: ({ children, ...props }: Omit<import("react-native").ScrollViewProps, "style">) => import("react/jsx-runtime").JSX.Element; Tab: (({ value: valueProps, children, disabled, style, ...props }: import("./Tab").TabsTabProps) => import("react/jsx-runtime").JSX.Element) & { Text: ({ style, ...props }: import("../..").ButtonTextProps) => import("react/jsx-runtime").JSX.Element; }; Panel: ({ value: valueProps, style, ...props }: import("../..").CardProps & { value: string | number; }) => import("react/jsx-runtime").JSX.Element; Indicator: ({ style }: { style?: import("@crossed/styled").CrossedMethods<any>; }) => import("react/jsx-runtime").JSX.Element; }; //# sourceMappingURL=index.d.ts.map