UNPKG

one

Version:

One is a React framework for web, iOS, and Android apps.

24 lines • 785 B
import type { ComponentProps, HTMLAttributes, ReactElement } from 'react'; export type TabListProps = HTMLAttributes<HTMLElement> & { /** Forward props to child component and removes the extra `<nav>`. Useful for custom wrappers. */ asChild?: boolean; }; /** * Wrapper component for `TabTriggers`. `TabTriggers` within the `TabList` define the tabs. * * @example * ```tsx * <Tabs> * <TabSlot /> * <TabList> * <TabTrigger name="home" href="/" /> * </TabList> * </Tabs> * ``` */ export declare function TabList({ asChild, ...props }: TabListProps): import("react/jsx-runtime").JSX.Element; /** * @hidden */ export declare function isTabList(child: ReactElement<any>): child is ReactElement<ComponentProps<typeof TabList>>; //# sourceMappingURL=TabList.d.ts.map