We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Will it be possible to create a TypeScript type to enumerate all existing icons?
Like bi-arrow-left, bi-three-dots-vertical, ...
bi-arrow-left
bi-three-dots-vertical
Useful to provide autocompletion on bootstrap icons, or to restrict possible values when passing an icon to a component.
The text was updated successfully, but these errors were encountered:
I think that the types should rather follow the names given in the Bootstrap Icons doc (without the bi bi- prefixes we add in the CSS class).
bi bi-
Like arrow-left, share, ...
arrow-left
share
Here is a TS type file created listing the node_modules/bootstrap-icons/icons directory, using the following command:
node_modules/bootstrap-icons/icons
ls icons/*.svg | sed 's|.*/||; s|\.svg$||' > icons_list.txt
The output has been post-processed to create the .ts file.
.ts
Sorry, something went wrong.
No branches or pull requests
Prerequisites
Proposal
Will it be possible to create a TypeScript type to enumerate all existing icons?
Like
bi-arrow-left
,bi-three-dots-vertical
, ...Motivation and context
Useful to provide autocompletion on bootstrap icons, or to restrict possible values when passing an icon to a component.
The text was updated successfully, but these errors were encountered: