@ntragas/pouncejstest
Version:
A collection of UI components from Panther labs
17 lines (16 loc) • 658 B
TypeScript
import React from 'react';
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.NamedExoticComponent<import("@reach/utils").PropsWithAs<"button", TabProps>>;
export default _default;