migrate-to-7.x.md

August 2, 2021 ยท View on GitHub

<Table>

  • New prop: sortable applies styles for sortable tables (false by default)

<TableToolbarAction>

v6v7
icon, icon name from carbon-iconsrenderIcon, which takes a React component, e.g. one from @carbon/icons-react
iconName, icon data from carbon-iconsrenderIcon, 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 colSpan prop to determine width