string
"a user friendly label for screen readers"
string
"start"
"center"
"end"
"stretch"
"baseline"
string
"none"
"xxsmall"
"xsmall"
"small"
"medium"
"large"
"xlarge"
object
{ vertical: "...", horizontal: "...", top: "...", bottom: "...", left: "...", right: "..." }
At its core, the Table component is a regular <table> element. Thus, both DOM and React properties, methods, and events are accessible. To read up on all of the possible DOM attributes and types available for table elements, check out this MDN Web Documents page. To learn more about DOM events and methods, you can read more on the MDN Web Events documentation page.
Also, feel free to read about the types of React events available, or see how DOM attributes change in React. Working in tandem with Styled Components, you also have access to the as property.
object
{ xxsmall: '48px', xsmall: '96px', small: '192px', medium: '384px', large: '768px', xlarge: '1152px', xxlarge: '1536px', full: '100%', }
TableCell
a cell of data in a table
string
"left"
"right"
"center"
"justify"
"inherit"
"start"
"end"
"string"
boolean
true
false
string
"top"
"left"
"bottom"
"right"
"start"
"end"
"horizontal"
"vertical"
"all"
object
{ color: string | { dark: string, light: string }, size: "medium", style: "dashed", side: "all" }
array
[ { color: "black", size: "small", style: "solid", side: "top" }, { color: "black", size: "medium", style: "dotted", side: "bottom" } ]
"xsmall"
"small"
"medium"
"large"
"xlarge"
"any CSS size"
"solid"
"dashed"
"dotted"
"double"
"groove"
"ridge"
"inset"
"outset"
"hidden"
"top"
"left"
"bottom"
"right"
"horizontal"
"vertical"
"all"
string
"col"
"row"
string
"xxsmall"
"xsmall"
"small"
"medium"
"large"
"xlarge"
"1/2"
"1/3"
"2/3"
"1/4"
"2/4"
"3/4"
"string"
At its core, the TableCell component is a regular <td> element. Thus, both DOM and React properties, methods, and events are accessible. To read up on all of the possible DOM attributes and types available for td elements, check out this MDN Web Documents page. To learn more about DOM events and methods, you can read more on the MDN Web Events documentation page.
Also, feel free to read about the types of React events available, or see how DOM attributes change in React. Working in tandem with Styled Components, you also have access to the as property.
string
css`color: 'blue'`
function
(props) => {}
string
"small"
object
{ horizontal: "small", vertical: "xsmall" }
string
"neutral-1"
"url(//my.com/assets/img.png)"
object
{ color: "neutral-1", dark: true, image: "url(//my.com/assets/img.png)" position: "bottom", opacity: true, repeat: "no-repeat", size: "cover", light: "string" }
"weak"
"medium"
"strong"
boolean
number
any CSS for background-position
"no-repeat"
"repeat"
"string"
"cover"
"contain"
"string"
string
css`color: 'blue'`
function
(props) => {}
string
"small"
object
{ horizontal: "small", vertical: "xsmall" }
TableRow
a row of cells in a table
At its core, the TableRow component is a regular <tr> element. Thus, both DOM and React properties, methods, and events are accessible. To read up on all of the possible DOM attributes and types available for tr elements, check out this MDN Web Documents page. To learn more about DOM events and methods, you can read more on the MDN Web Events documentation page.
Also, feel free to read about the types of React events available, or see how DOM attributes change in React. Working in tandem with Styled Components, you also have access to the as property.
TableHeader
the header of a table
At its core, the TableHeader component is a regular <thead> element. Thus, both DOM and React properties, methods, and events are accessible. To read up on all of the possible DOM attributes and types available for thead elements, check out this MDN Web Documents page. To learn more about DOM events and methods, you can read more on the MDN Web Events documentation page.
Also, feel free to read about the types of React events available, or see how DOM attributes change in React. Working in tandem with Styled Components, you also have access to the as property.
TableBody
the body of a table
At its core, the TableBody component is a regular <tbody> element. Thus, both DOM and React properties, methods, and events are accessible. To read up on all of the possible DOM attributes and types available for tbody elements, check out this MDN Web Documents page. To learn more about DOM events and methods, you can read more on the MDN Web Events documentation page.
Also, feel free to read about the types of React events available, or see how DOM attributes change in React. Working in tandem with Styled Components, you also have access to the as property.
TableFooter
the footer of a table
At its core, the TableFooter component is a regular <tfoot> element. Thus, both DOM and React properties, methods, and events are accessible. To read up on all of the possible DOM attributes and types available for tfoot elements, check out this MDN Web Documents page. To learn more about DOM events and methods, you can read more on the MDN Web Events documentation page.
Also, feel free to read about the types of React events available, or see how DOM attributes change in React. Working in tandem with Styled Components, you also have access to the as property.