UNPKG

@hypothesis/frontend-shared

Version:

Shared components, styles and utilities for Hypothesis projects

17 lines (16 loc) 570 B
import type { RefObject } from 'preact'; export type TableInfo = { /** This table has click-able, focus-able rows */ interactive: boolean; /** This table has a sticky header */ stickyHeader: boolean; /** Turn off outer table borders */ borderless: boolean; /** Show a different background every other row */ striped: boolean; /** Show grid lines around table cells */ grid: boolean; tableRef: RefObject<HTMLElement | undefined>; }; declare const TableContext: import("preact").Context<TableInfo>; export default TableContext;