Wildcard V2: <Icon /> Implementation
Created by: gitstart-sourcegraph
Wildcard implementation of the component.
See Wildcard V2 - Planned work for more context
Acceptance criteria
-
Component is implemented within Wildcard -
Component has tests -
Component is accessible -
Component matches Figma designs
Refs
Implementation details
- Add new to the Wildcard package.
- A wrapper component that receives svg and applies the icon-inline class.
- Copy the existing global styles to the component CSS module.
- Remove redundant classes that we don't use in the codebase.
- Create a basic Storybook story that shows component usage.
- Use the component as a blueprint for the new component.
- Component API:
<Icon svg={CloudOutlineIcon} />