Skip to content

Latest commit

 

History

History
19 lines (13 loc) · 856 Bytes

migrate-to-7.x.md

File metadata and controls

19 lines (13 loc) · 856 Bytes

Props

<Button>

v9 v10
icon, icon name or icon data from carbon-icons renderIcon, which takes a React component, e.g. one from @carbon/icons-react
danger--primary value in kind Removed
inputRef ref

v10 example

import AddFilled16 from '@carbon/icons-react/lib/add--filled/16';

...

<Button renderIcon={AddFilled16} />