Skip to content

Dynamic icons not possible? #51

Closed Answered by rektdeckard
JipSterk asked this question in Q&A
Discussion options

You must be logged in to vote

Got the storybook running. Only change that's needed is import * as Phosphor from "@phosphor-icons/react";. As I said, the lib does not have a default export, only named exports. You want to treat it like it does, so you need to use the import * as syntax to construct one.

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@rektdeckard
Comment options

@rektdeckard
Comment options

@JipSterk
Comment options

@rektdeckard
Comment options

Answer selected by rektdeckard
@rektdeckard
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants