pouncejs
Version:
A collection of UI components from Panther labs
18 lines (17 loc) • 716 B
TypeScript
import React from 'react';
import type * as Polymorphic from '@reach/utils/polymorphic';
import { NativeAttributes } from '../Box';
declare type TabRenderProps = {
/** Whether the tab is selected */
isSelected: boolean;
/** Whether the tab is focused */
isFocused: boolean;
};
export declare type TabProps = NativeAttributes<'button'> & {
/** Whether the tab should be disabled */
disabled?: boolean;
/** The children of this tab. Can be a render-props pattern as well */
children: ((renderProps: TabRenderProps) => React.ReactNode) | React.ReactNode;
};
declare const _default: React.MemoExoticComponent<Polymorphic.ForwardRefComponent<"button", TabProps>>;
export default _default;