javascript
How to use @gentleduck/ui with JavaScript
You can use @gentleduck/ui from JavaScript projects.
The source and docs are authored in TypeScript, but runtime usage works the same in JavaScript. You can copy component code and remove type annotations where needed.
Notes for JavaScript users
- Install and use components exactly as shown in the docs.
- Ignore type-only imports and type annotations in TypeScript snippets.
- Keep your project aliases configured (
@/*etc.) so copied component imports resolve correctly.
TypeScript is recommended for better editor support and safer refactors, but it is not required to use the components.
Next steps
- Installation — Set up your project
- CLI — Add components quickly
- Components — Browse available UI components