UNPKG

@abgov/react-components

Version:

Government of Alberta - UI components for React

27 lines (26 loc) 873 B
import { GoabTableOnSortDetail, GoabTableVariant, Margins } from '@abgov/ui-components-common'; import { ReactNode } from 'react'; interface WCProps extends Margins { ref?: React.RefObject<HTMLElement | null>; width?: string; stickyheader?: string; variant?: GoabTableVariant; testid?: string; } declare module "react" { namespace JSX { interface IntrinsicElements { "goa-table": WCProps & React.HTMLAttributes<HTMLElement>; } } } export interface GoabTableProps extends Margins { width?: string; onSort?: (detail: GoabTableOnSortDetail) => void; variant?: GoabTableVariant; testId?: string; children?: ReactNode; } export type TableProps = GoabTableProps; export declare function GoabTable({ onSort, ...props }: GoabTableProps): import("react/jsx-runtime").JSX.Element; export default GoabTable;