UNPKG

@hypothesis/frontend-shared

Version:

Shared components, styles and utilities for Hypothesis projects

18 lines (17 loc) 710 B
import type { JSX } from 'preact'; import type { PresentationalProps } from '../../types'; type HTMLAttributes = Omit<JSX.HTMLAttributes<HTMLElement>, 'size'>; type ComponentProps = { /** * By default, TabLists are oriented horizontally. Vertically-oriented * TabLists add up/down arrow-key navigation. */ vertical?: boolean; }; export type TabListProps = PresentationalProps & ComponentProps & HTMLAttributes; /** * Render a tablist container for a set of tabs, with arrow key navigation per * https://www.w3.org/WAI/ARIA/apg/patterns/tabpanel/ */ export default function TabList({ children, classes, elementRef, vertical, ...htmlAttributes }: TabListProps): JSX.Element; export {};