Skip to content

cleminso/shadcn-preact

 
 

Repository files navigation

shadcn/ui-preact

An unofficial, Preact port of shadcn/ui.

This is NOT a component library. It’s a collection of re-usable components that you can copy and paste into your apps.

What do you mean by not a component library?

I mean you do not install it as a dependency. It is not available or distributed via npm. I have no plans to publish it as an npm package (for now).

Pick the components you need. Copy and paste the code into your project and customize to your needs. The code is yours.

Use this as a reference to build your own component libraries.

Why if Preact is compatible with React?

Shadcn/ui is built upon Radix UI and Tailwind CSS. While Radix UI offers a robust set of components, it introduces several dependencies that may not align seamlessly with Preact projects. This port aims to provide better integration with Preact and reduce reliance on external packages. Although some components may still require additional dependencies, every effort is made to minimize and adapt them as needed.

Documentation

Visit our documentation to learn more.

License

Licensed under the MIT license.

About

shadcn, but for preact

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 97.1%
  • CSS 1.8%
  • Other 1.1%