Icon
A glyph in a span, drawn in the current text colour at the current font size.
@internote/canvas-sdk/reactOn this page
import { Icon } from '@internote/canvas-sdk/react';A glyph element is drawn as given; otherwise name picks one of the built-in 24×24 paths, and with neither the span holds an empty SVG. The built-in SVG is hidden from screen readers, so an icon that carries meaning needs an aria-label.
#Props
Also takes className. Any other prop is passed to the rendered element.
aria-labelThe accessible name, set on the wrapping
span.stringglyphAny element to draw instead of a built-in glyph; wins over
name.React.ReactElementnameOne of the SDK's built-in glyphs.
playpausecheckrestartloopnextprevfullscreenexit-fullscreencopysizeThe icon's size, as a font size: a number is pixels, a string any CSS length.
number | stringDefault
'1em'Declared in packages/canvas-sdk/src/react/chrome/Icon.tsx:62.