@dabapps/roe
Version:
A collection of React components, styles, mixins, and atomic CSS classes to aid with the development of web applications.
48 lines (47 loc) • 1.21 kB
TypeScript
import * as React from 'react';
import { OptionalComponentPropAndHTMLAttributes } from '../../types';
export declare type TableProps = {
/**
* Currently unused.
* @default "'sm'"
*/
collapse?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
/**
* Allows the table to scroll horizontally.
*/
scrollable?: boolean;
/**
* Applies striped styles to the table.
*/
striped?: boolean;
/**
* Adds border styles to the table.
*/
bordered?: boolean;
/**
* Applies styles to table rows on hover.
*/
hover?: boolean;
/**
* Condensed table padding.
*/
condensed?: boolean;
/**
* Fill the parent element.
*/
fill?: boolean;
/**
* Applies `table-layout: fixed;` style so that all columns are the same width.
*/
fixed?: boolean;
/**
* Fix the first cell of every row so they do not scroll.
*/
fixRowHeaders?: boolean;
/**
* Set a width for the first column when fixed.
*/
rowHeaderWidth?: number;
} & OptionalComponentPropAndHTMLAttributes;
declare const _default: React.MemoExoticComponent<(props: TableProps) => JSX.Element>;
export default _default;