@crossed/ui
Version:
A universal & performant styling library for React Native, Next.js & React
22 lines • 1.08 kB
TypeScript
/**
* 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 { TabsContext, TriggerContext } from './context';
import { PressableProps } from 'react-native';
import { PropsWithChildren, ReactNode } from 'react';
import { CrossedMethods } from '@crossed/styled';
import { ButtonTextProps } from '../../buttons/Button';
export type TabsTabProps = Pick<TabsContext, 'value'> & Omit<PressableProps, 'style'> & PropsWithChildren<{
style?: CrossedMethods<any>;
}>;
export declare const createTab: ({ useTriggerContext, useTabsContext, TriggerProvider, }: {
TriggerProvider: (_p: PropsWithChildren<TriggerContext>) => ReactNode;
useTriggerContext: () => TriggerContext;
useTabsContext: () => TabsContext;
}) => (({ value: valueProps, children, disabled, style, ...props }: TabsTabProps) => import("react/jsx-runtime").JSX.Element) & {
Text: ({ style, ...props }: ButtonTextProps) => import("react/jsx-runtime").JSX.Element;
};
//# sourceMappingURL=Tab.d.ts.map