@hmlr/govuk-react-components-library
Version:
These are common component use for React applications based on GDS and govuk-frontend
15 lines (14 loc) • 351 B
TypeScript
import { HTMLAttributes } from "react";
export interface TabItem {
id?: string;
label: string;
panel: HTMLAttributes<HTMLDivElement>;
[key: string]: unknown;
}
export interface TabsProps extends HTMLAttributes<HTMLDivElement> {
className?: string;
id: string;
idPrefix?: string;
items: TabItem[];
title?: string;
}