migrate-to-7.x.md
August 2, 2021 ยท View on GitHub
<Table>
- New prop:
sortableapplies styles for sortable tables (false by default)
<TableToolbarAction>
| v6 | v7 |
|---|---|
icon, icon name from carbon-icons | renderIcon, which takes a React component, e.g. one from @carbon/icons-react |
iconName, icon data from carbon-icons | renderIcon, which takes a React component, e.g. one from @carbon/icons-react |
v7 example
import Download16 from '@carbon/icons-react/lib/download/16';
...
<TableToolbarAction renderIcon={Download16} />
<TableExpandedRow>
- Now manages it's own TableCell
- Expects
colSpanprop to determine width