Skip to content

Commit

Permalink
Add available codicons to Storybook (#3874)
Browse files Browse the repository at this point in the history
  • Loading branch information
sroy3 authored May 12, 2023
1 parent 8f768e1 commit c7524b9
Showing 1 changed file with 18 additions and 7 deletions.
25 changes: 18 additions & 7 deletions webview/src/stories/Icons.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,24 @@ export default {

const Template: StoryFn = () => {
return (
<IconsWrapper>
{Object.values(Icons).map(IconComponent => (
<IconWrapper key={IconComponent.name} name={IconComponent.name}>
<Icon icon={IconComponent} />
</IconWrapper>
))}
</IconsWrapper>
<>
<IconsWrapper>
{Object.values(Icons).map(IconComponent => (
<IconWrapper key={IconComponent.name} name={IconComponent.name}>
<Icon icon={IconComponent} />
</IconWrapper>
))}
</IconsWrapper>
<p>
<a href="https://microsoft.github.io/vscode-codicons/dist/codicon.html">
Other icons that can be added
</a>
</p>
<p>
Copy the icon name, add it to `codicons` constant in
`webview/icons/generate.mjs` and run `yarn svgr`.
</p>
</>
)
}

Expand Down

0 comments on commit c7524b9

Please sign in to comment.