Semantic table primitives for simpler tabular data.
import { Table } from '@vrum/ui';
import { TableCaption, TableHeader, TableRow, TableHead, TableBody, TableCell } from '@vrum/ui';
<Table>
<TableCaption>Current project milestones</TableCaption><TableHeader><TableRow><TableHead scope="col">Milestone</TableHead><TableHead scope="col">Status</TableHead></TableRow></TableHeader><TableBody><TableRow><TableCell>Discovery</TableCell><TableCell>Completed</TableCell></TableRow><TableRow><TableCell>Prototype</TableCell><TableCell>In review</TableCell></TableRow></TableBody>
</Table>Copy code| Prop | Type | Default | Description |
|---|---|---|---|
defaultChecked | boolean | none | default checked configuration. |
defaultValue | string | number | readonly string[] | none | Initial value for an uncontrolled component. |
autoFocus | boolean | none | auto focus configuration. |
className | string | none | Additional CSS classes. |
id | string | none | id configuration. |
style | CSSProperties | none | Inline style overrides. |
aria-invalid | boolean | "false" | "true" | "grammar" | "spelling" | none | Indicates the entered value does not conform to the format expected by the application. |
aria-label | string | none | Defines a string value that labels the current element. |
children | ReactNode | none | Content rendered inside the component. |
onFocus | FocusEventHandler<HTMLElement> | none | on focus configuration. |
onBlur | FocusEventHandler<HTMLElement> | none | on blur configuration. |
onChange | ChangeEventHandler<HTMLElement, Element> | none | Called when the input value changes. |
onSubmit | SubmitEventHandler<HTMLElement> | none | Called when the form is submitted. |
onKeyDown | KeyboardEventHandler<HTMLElement> | none | on key down configuration. |
onClick | MouseEventHandler<HTMLElement> | none | Called when the control is activated. |
onSelect | ReactEventHandler<HTMLElement> | none | on select configuration. |
| Prop | Type | Default | Description |
|---|---|---|---|
defaultChecked | boolean | none | default checked configuration. |
defaultValue | string | number | readonly string[] | none | Initial value for an uncontrolled component. |
autoFocus | boolean | none | auto focus configuration. |
className | string | none | Additional CSS classes. |
id | string | none | id configuration. |
style | CSSProperties | none | Inline style overrides. |
aria-invalid | boolean | "false" | "true" | "grammar" | "spelling" | none | Indicates the entered value does not conform to the format expected by the application. |
aria-label | string | none | Defines a string value that labels the current element. |
children | ReactNode | none | Content rendered inside the component. |
onFocus | FocusEventHandler<HTMLElement> | none | on focus configuration. |
onBlur | FocusEventHandler<HTMLElement> | none | on blur configuration. |
onChange | ChangeEventHandler<HTMLElement, Element> | none | Called when the input value changes. |
onSubmit | SubmitEventHandler<HTMLElement> | none | Called when the form is submitted. |
onKeyDown | KeyboardEventHandler<HTMLElement> | none | on key down configuration. |
onClick | MouseEventHandler<HTMLElement> | none | Called when the control is activated. |
onSelect | ReactEventHandler<HTMLElement> | none | on select configuration. |
| Prop | Type | Default | Description |
|---|---|---|---|
defaultChecked | boolean | none | default checked configuration. |
defaultValue | string | number | readonly string[] | none | Initial value for an uncontrolled component. |
autoFocus | boolean | none | auto focus configuration. |
className | string | none | Additional CSS classes. |
id | string | none | id configuration. |
style | CSSProperties | none | Inline style overrides. |
aria-invalid | boolean | "false" | "true" | "grammar" | "spelling" | none | Indicates the entered value does not conform to the format expected by the application. |
aria-label | string | none | Defines a string value that labels the current element. |
children | ReactNode | none | Content rendered inside the component. |
onFocus | FocusEventHandler<HTMLElement> | none | on focus configuration. |
onBlur | FocusEventHandler<HTMLElement> | none | on blur configuration. |
onChange | ChangeEventHandler<HTMLElement, Element> | none | Called when the input value changes. |
onSubmit | SubmitEventHandler<HTMLElement> | none | Called when the form is submitted. |
onKeyDown | KeyboardEventHandler<HTMLElement> | none | on key down configuration. |
onClick | MouseEventHandler<HTMLElement> | none | Called when the control is activated. |
onSelect | ReactEventHandler<HTMLElement> | none | on select configuration. |
| Prop | Type | Default | Description |
|---|---|---|---|
defaultChecked | boolean | none | default checked configuration. |
defaultValue | string | number | readonly string[] | none | Initial value for an uncontrolled component. |
autoFocus | boolean | none | auto focus configuration. |
className | string | none | Additional CSS classes. |
id | string | none | id configuration. |
style | CSSProperties | none | Inline style overrides. |
aria-invalid | boolean | "false" | "true" | "grammar" | "spelling" | none | Indicates the entered value does not conform to the format expected by the application. |
aria-label | string | none | Defines a string value that labels the current element. |
children | ReactNode | none | Content rendered inside the component. |
onFocus | FocusEventHandler<HTMLElement> | none | on focus configuration. |
onBlur | FocusEventHandler<HTMLElement> | none | on blur configuration. |
onChange | ChangeEventHandler<HTMLElement, Element> | none | Called when the input value changes. |
onSubmit | SubmitEventHandler<HTMLElement> | none | Called when the form is submitted. |
onKeyDown | KeyboardEventHandler<HTMLElement> | none | on key down configuration. |
onClick | MouseEventHandler<HTMLElement> | none | Called when the control is activated. |
onSelect | ReactEventHandler<HTMLElement> | none | on select configuration. |
| Prop | Type | Default | Description |
|---|---|---|---|
defaultChecked | boolean | none | default checked configuration. |
defaultValue | string | number | readonly string[] | none | Initial value for an uncontrolled component. |
autoFocus | boolean | none | auto focus configuration. |
className | string | none | Additional CSS classes. |
id | string | none | id configuration. |
style | CSSProperties | none | Inline style overrides. |
aria-invalid | boolean | "false" | "true" | "grammar" | "spelling" | none | Indicates the entered value does not conform to the format expected by the application. |
aria-label | string | none | Defines a string value that labels the current element. |
children | ReactNode | none | Content rendered inside the component. |
onFocus | FocusEventHandler<HTMLTableCellElement> | none | on focus configuration. |
onBlur | FocusEventHandler<HTMLTableCellElement> | none | on blur configuration. |
onChange | ChangeEventHandler<HTMLTableCellElement, Element> | none | Called when the input value changes. |
onSubmit | SubmitEventHandler<HTMLTableCellElement> | none | Called when the form is submitted. |
onKeyDown | KeyboardEventHandler<HTMLTableCellElement> | none | on key down configuration. |
onClick | MouseEventHandler<HTMLTableCellElement> | none | Called when the control is activated. |
onSelect | ReactEventHandler<HTMLTableCellElement> | none | on select configuration. |
| Prop | Type | Default | Description |
|---|---|---|---|
defaultChecked | boolean | none | default checked configuration. |
defaultValue | string | number | readonly string[] | none | Initial value for an uncontrolled component. |
autoFocus | boolean | none | auto focus configuration. |
className | string | none | Additional CSS classes. |
id | string | none | id configuration. |
style | CSSProperties | none | Inline style overrides. |
aria-invalid | boolean | "false" | "true" | "grammar" | "spelling" | none | Indicates the entered value does not conform to the format expected by the application. |
aria-label | string | none | Defines a string value that labels the current element. |
children | ReactNode | none | Content rendered inside the component. |
onFocus | FocusEventHandler<HTMLElement> | none | on focus configuration. |
onBlur | FocusEventHandler<HTMLElement> | none | on blur configuration. |
onChange | ChangeEventHandler<HTMLElement, Element> | none | Called when the input value changes. |
onSubmit | SubmitEventHandler<HTMLElement> | none | Called when the form is submitted. |
onKeyDown | KeyboardEventHandler<HTMLElement> | none | on key down configuration. |
onClick | MouseEventHandler<HTMLElement> | none | Called when the control is activated. |
onSelect | ReactEventHandler<HTMLElement> | none | on select configuration. |
| Prop | Type | Default | Description |
|---|---|---|---|
defaultChecked | boolean | none | default checked configuration. |
defaultValue | string | number | readonly string[] | none | Initial value for an uncontrolled component. |
autoFocus | boolean | none | auto focus configuration. |
className | string | none | Additional CSS classes. |
id | string | none | id configuration. |
style | CSSProperties | none | Inline style overrides. |
aria-invalid | boolean | "false" | "true" | "grammar" | "spelling" | none | Indicates the entered value does not conform to the format expected by the application. |
aria-label | string | none | Defines a string value that labels the current element. |
children | ReactNode | none | Content rendered inside the component. |
onFocus | FocusEventHandler<HTMLTableCellElement> | none | on focus configuration. |
onBlur | FocusEventHandler<HTMLTableCellElement> | none | on blur configuration. |
onChange | ChangeEventHandler<HTMLTableCellElement, Element> | none | Called when the input value changes. |
onSubmit | SubmitEventHandler<HTMLTableCellElement> | none | Called when the form is submitted. |
onKeyDown | KeyboardEventHandler<HTMLTableCellElement> | none | on key down configuration. |
onClick | MouseEventHandler<HTMLTableCellElement> | none | Called when the control is activated. |
onSelect | ReactEventHandler<HTMLTableCellElement> | none | on select configuration. |
| Milestone | Status |
|---|---|
| Discovery | Completed |
| Prototype | In review |