Askr documentation
Generated API snapshot

@askrjs/ui/table

Exports from the declarations published in @askrjs/ui. Signatures reflect the published artifact.

Exports

This entrypoint publishes 24 exports. Use the anchored symbol rows for direct links. Type-only exports are labeled separately from runtime values.

Tabletype

Table: { (props: TableProps): JSX.Element; (props: TableAsChildProps): JSX.Element; }

Semantic table primitive family. Renders a part of `table`. Supports polymorphic rendering via `asChild`.

TableAsChildPropstype

TableAsChildProps: TableAsChildBaseProps

Props for the `asChild` (polymorphic) rendering of Table.

asChild
asChild: true;
children
children: JSXElement;
ref
ref?: Ref<Element>;

TableBodytype

TableBody: { (props: TableBodyProps): JSX.Element; (props: TableBodyAsChildProps): JSX.Element; }

Renders a part of `table`. Supports polymorphic rendering via `asChild`.

TableBodyAsChildPropstype

TableBodyAsChildProps: TableAsChildBaseProps

Props for the `asChild` (polymorphic) rendering of Table Body.

asChild
asChild: true;
children
children: JSXElement;
ref
ref?: Ref<Element>;

TableBodyPropstype

TableBodyProps: TableNativeProps<'tbody', HTMLTableSectionElement> | TableBodyAsChildProps

Props for Table Body.

asChild
asChild?: boolean | undefined;
children
children?: unknown;
ref
ref?: ((value: Element | null) => void) | { current: Element | null; } | ((value: HTMLTableSectionElement | null) => void) | { current: HTMLTableSectionElement | null; } | null | undefined;

TableCaptiontype

TableCaption: { (props: TableCaptionProps): JSX.Element; (props: TableCaptionAsChildProps): JSX.Element; }

Renders a part of `table`. Supports polymorphic rendering via `asChild`.

TableCaptionAsChildPropstype

TableCaptionAsChildProps: TableAsChildBaseProps

Props for the `asChild` (polymorphic) rendering of Table Caption.

asChild
asChild: true;
children
children: JSXElement;
ref
ref?: Ref<Element>;

TableCaptionPropstype

TableCaptionProps: TableNativeProps<'caption', HTMLTableCaptionElement> | TableCaptionAsChildProps

Props for Table Caption.

asChild
asChild?: boolean | undefined;
children
children?: unknown;
ref
ref?: ((value: Element | null) => void) | { current: Element | null; } | ((value: HTMLTableCaptionElement | null) => void) | { current: HTMLTableCaptionElement | null; } | null | undefined;

TableCelltype

TableCell: { (props: TableCellProps): JSX.Element; (props: TableCellAsChildProps): JSX.Element; }

Renders a part of `table`. Supports polymorphic rendering via `asChild`.

TableCellAsChildPropstype

TableCellAsChildProps: TableAsChildBaseProps

Props for the `asChild` (polymorphic) rendering of Table Cell.

asChild
asChild: true;
children
children: JSXElement;
ref
ref?: Ref<Element>;

TableCellPropstype

TableCellProps: TableNativeProps<'td', HTMLTableCellElement> | TableCellAsChildProps

Props for Table Cell.

asChild
asChild?: boolean | undefined;
children
children?: unknown;
ref
ref?: ((value: Element | null) => void) | { current: Element | null; } | ((value: HTMLTableCellElement | null) => void) | { current: HTMLTableCellElement | null; } | null | undefined;

TableFoottype

TableFoot: { (props: TableFootProps): JSX.Element; (props: TableFootAsChildProps): JSX.Element; }

Renders a part of `table`. Supports polymorphic rendering via `asChild`.

TableFootAsChildPropstype

TableFootAsChildProps: TableAsChildBaseProps

Props for the `asChild` (polymorphic) rendering of Table Foot.

asChild
asChild: true;
children
children: JSXElement;
ref
ref?: Ref<Element>;

TableFootPropstype

TableFootProps: TableNativeProps<'tfoot', HTMLTableSectionElement> | TableFootAsChildProps

Props for Table Foot.

asChild
asChild?: boolean | undefined;
children
children?: unknown;
ref
ref?: ((value: Element | null) => void) | { current: Element | null; } | ((value: HTMLTableSectionElement | null) => void) | { current: HTMLTableSectionElement | null; } | null | undefined;

TableHeadtype

TableHead: { (props: TableHeadProps): JSX.Element; (props: TableHeadAsChildProps): JSX.Element; }

Renders a part of `table`. Supports polymorphic rendering via `asChild`.

TableHeadAsChildPropstype

TableHeadAsChildProps: TableAsChildBaseProps

Props for the `asChild` (polymorphic) rendering of Table Head.

asChild
asChild: true;
children
children: JSXElement;
ref
ref?: Ref<Element>;

TableHeaderCelltype

TableHeaderCell: { (props: TableHeaderCellProps): JSX.Element; (props: TableHeaderCellAsChildProps): JSX.Element; }

Renders a part of `table`. Supports polymorphic rendering via `asChild`.

TableHeaderCellAsChildPropstype

TableHeaderCellAsChildProps: TableAsChildBaseProps

Props for the `asChild` (polymorphic) rendering of Table Header Cell.

asChild
asChild: true;
children
children: JSXElement;
ref
ref?: Ref<Element>;

TableHeaderCellPropstype

TableHeaderCellProps: TableNativeProps<'th', HTMLTableCellElement> | TableHeaderCellAsChildProps

Props for Table Header Cell.

asChild
asChild?: boolean | undefined;
children
children?: unknown;
ref
ref?: ((value: Element | null) => void) | { current: Element | null; } | ((value: HTMLTableCellElement | null) => void) | { current: HTMLTableCellElement | null; } | null | undefined;

TableHeadPropstype

TableHeadProps: TableNativeProps<'thead', HTMLTableSectionElement> | TableHeadAsChildProps

Props for Table Head.

asChild
asChild?: boolean | undefined;
children
children?: unknown;
ref
ref?: ((value: Element | null) => void) | { current: Element | null; } | ((value: HTMLTableSectionElement | null) => void) | { current: HTMLTableSectionElement | null; } | null | undefined;

TablePropstype

TableProps: TableNativeProps<'table', HTMLTableElement> | TableAsChildBaseProps

Props for Table.

asChild
asChild?: boolean | undefined;
children
children?: unknown;
ref
ref?: ((value: Element | null) => void) | { current: Element | null; } | ((value: HTMLTableElement | null) => void) | { current: HTMLTableElement | null; } | null | undefined;

TableRowtype

TableRow: { (props: TableRowProps): JSX.Element; (props: TableRowAsChildProps): JSX.Element; }

Renders a part of `table`. Supports polymorphic rendering via `asChild`.

TableRowAsChildPropstype

TableRowAsChildProps: TableAsChildBaseProps

Props for the `asChild` (polymorphic) rendering of Table Row.

asChild
asChild: true;
children
children: JSXElement;
ref
ref?: Ref<Element>;

TableRowPropstype

TableRowProps: TableNativeProps<'tr', HTMLTableRowElement> | TableRowAsChildProps

Props for Table Row.

asChild
asChild?: boolean | undefined;
children
children?: unknown;
ref
ref?: ((value: Element | null) => void) | { current: Element | null; } | ((value: HTMLTableRowElement | null) => void) | { current: HTMLTableRowElement | null; } | null | undefined;