score:0

taken from https://www.carbondesignsystem.com/guidelines/icons/code/#usage

icons in this package support the following sizes: 16, 20, 24, and 32 pixels. these sizes refer to the width and height of the icon. you can import an icon component into your project by referring to its name and size:

import { add24 } from '@carbon/icons-react';

meaning, you should try import the icon with the size you wish to use. in the example above, they are using the 24px version of add icon so they import add24


Related Query

More Query from same tag