feat(react-kivex): implement React wrapper with automated SVG generation#1
Open
Joseph4sure wants to merge 1 commit into
Open
feat(react-kivex): implement React wrapper with automated SVG generation#1Joseph4sure wants to merge 1 commit into
Joseph4sure wants to merge 1 commit into
Conversation
Owner
|
Thanks for this amazing contribution! Your icon generator script is really powerful and clean. I've locally patched a few minor issues regarding Windows path formatting and SVG rendering, and everything is now working flawlessly in the playground. Merging this now to add it to the repository and publish on npm. Appreciate your great work! 🚀🔥 |
Contributor
Author
|
The pleasure is all mine. ✌️
…On Sun, Jul 5, 2026 at 4:29 PM MD. SAIFUL ALOM SIAM < ***@***.***> wrote:
*MotionMind2007* left a comment (MotionMind2007/Kivex#1)
<#1 (comment)>
Thanks for this amazing contribution! Your icon generator script is really
powerful and clean.
I've locally patched a few minor issues regarding Windows path formatting
and SVG rendering, and everything is now working flawlessly in the
playground.
Merging this now to add it to the repository and publish on npm.
Appreciate your great work! 🚀🔥
—
Reply to this email directly, view it on GitHub
<#1?email_source=notifications&email_token=ANLPYMUGTVTM3F7EHMV2QTL5DJX6VA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTIOBYGY2TMMZVHA2KM4TFMFZW63VGMF2XI2DPOKSWK5TFNZ2KYZTPN52GK4S7MNWGSY3L#issuecomment-4886563584>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ANLPYMXZLUYHNKPRIDPCF4L5DJX6VAVCNFSNUABGKJSXA33TNF2G64TZHMYTENBWGEZTEMBYGM5US43TOVSTWNBYGA4TQNRYGE4THILWAI>
.
Triage notifications, keep track of coding agent tasks and review pull
requests on the go with GitHub Mobile for iOS
<https://github.com/notifications/mobile/ios/ANLPYMXSYXLNU62JOWCK2DT5DJX6VA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTIOBYGY2TMMZVHA2KM4TFMFZW63VGMF2XI2DPOKSWK5TFNZ2KUZTPN52GK4S7NFXXG>
and Android
<https://github.com/notifications/mobile/android/ANLPYMW7OUMHEXCQSHRSSPT5DJX6VA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTIOBYGY2TMMZVHA2KM4TFMFZW63VGMF2XI2DPOKSWK5TFNZ2K4ZTPN52GK4S7MFXGI4TPNFSA>.
Download it today!
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview
This PR implements
react-kivex– a fully automated SVG-to-React icon generation system for the Kivex project.Features
🎨 Automated Icon Generation
.svgfile into/icons, and a fully typed React component is generated automaticallynpm run watchautomatically regenerates components when SVGs are added, updated, or removed🧩 Developer Experience
npm run watchfor instant regeneration during developmentnpm run generate -- --forceto regenerate everything📦 Package Architecture
size,color,strokeWidth, and ref forwardingIconPropsfor consumerssrc/index.tsautomaticallytsupfor ESM and CJS output🧪 Development Tools
npm run watchfor instant regenerationTechnical Implementation
@svgr/core+@svgr/plugin-jsxfor SVG to JSX transformationIconTemplate.ts) ensures consistent component structurechokidarfor file watching with debounced regenerationfast-globfor efficient SVG file discoveryfs-extrafor file operations🎨 Icon Component Props
Every icon (including
Share) accepts the following props:All icons also forward any additional SVG attributes to the underlying
<svg>element.Example Usage
Then import and use:
For local development (within this monorepo)
Testing with the playground
cd playground npm install npm run dev