@intility/bifrost-react
Version:
React library for Intility's design system, Bifrost.
20 lines (19 loc) • 898 B
TypeScript
import type { PropsFor } from "../../types.js";
export type TabsItemContentProps = Omit<React.JSX.IntrinsicElements["div"], "children">;
export type TabsItemProps = PropsFor<"button", {
/** Tab content, rendered when the tab is active */
content: React.ReactNode;
/** Optional tab content wrapper div element props */
contentProps?: TabsItemContentProps;
/** Bool to indicate when an item should be opened */
active?: boolean;
/** Bool to remove padding from content div */
noPadding?: boolean;
/** Render content in DOM tree even when the tab is inactive and hidden.
* (default `false`) */
eager?: boolean;
/** Add padding as a number, when `noPadding` is false*/
padding?: number;
}>;
declare const TabsItem: import("react").ForwardRefExoticComponent<TabsItemProps & import("react").RefAttributes<HTMLButtonElement>>;
export default TabsItem;