@challenge.day/uikit
Version:
The UI Kit is as suite of UI elements/components implemented according to this [spec](https://www.figma.com/design/BCswG7SnW2HQ4XlQN9liDO/Challenge.day?node-id=3734-4804&m=dev).
24 lines (23 loc) • 634 B
TypeScript
import React, { ReactElement } from "react";
interface TabProps {
onPress?: (index?: number) => void;
isActive?: boolean;
children?: React.ReactNode;
tabIndex?: number;
}
export declare const Tab: React.FC<TabProps>;
interface TabsProps {
/**
*
* Executes an action on a single tab click
* @param index - Index of clicked tab item.
*/
onSingleTabPress?: (index?: number) => void;
/**
* Active tab index. The tab at that index would be highlighted.
*/
activeTabIndex?: number;
children: ReactElement<TabProps> | ReactElement<TabProps>[];
}
export declare const Tabs: React.FC<TabsProps>;
export {};