https://github.com/liascode/shadcn-preact
shadcn, but for preact
https://github.com/liascode/shadcn-preact
port preact preactjs shadcn shadcn-ui
Last synced: 4 months ago
JSON representation
shadcn, but for preact
- Host: GitHub
- URL: https://github.com/liascode/shadcn-preact
- Owner: LiasCode
- License: mit
- Created: 2025-02-09T07:45:40.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-28T09:40:38.000Z (12 months ago)
- Last Synced: 2025-02-28T16:35:18.570Z (12 months ago)
- Topics: port, preact, preactjs, shadcn, shadcn-ui
- Language: TypeScript
- Homepage: https://shadcn-preact.onrender.com/
- Size: 662 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# 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](https://shadcn-preact.onrender.com/docs/installation) to learn more.
## License
Licensed under the [MIT license](https://github.com/LiasCode/shadcn-preact/blob/main/LICENSE.md).