create-chakra-icons
Transform SVG to React Chakra UI from SVG file to CODE.
Features
- [x] Transform
<SVG/>
to Chakra-UIIcon
Component or FunctionalcreateIcon(...)
. - [x] Multiple input with
directories
orfiles
as input value for option-i
or--input
. - [x] Support case in export name declaration (camel|snake|pascal|constant).
- [x] Suffix and Prefix for generated code of export name declaration.
- [x] Support type annotation when code generated is
<Icon />
.
Usage
Command Line Arguments
Flags
Options
Input
Examples
Pipelines command:
- input in pipe
- output in stdout
Multiple Input
- input
per-file
- input
directories
- input
directories and per-file
at the same time
- output will be make in
Icons.js
(argument-o
or--output
).
Roadmap
- [x] TypeScript Support (Type Annotation or Type Definition).
- Only when code generated is
<Icon />
component See.
- Only when code generated is
- [ ] ReScript Support.
- [ ] Per file input is Per file output. ⁉️ ?
- [ ] Feel free for give me any feedback or feature request (create an issue first).
Maintainer
- Rin (@ri7nz)