Skip to main content

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.

Next steps