shadcn/ui
UI library · Free
React components you can copy and a registry: the source code stays in your project and can be adapted to your own design system.
Also known as: shadcn-ui/ui

What you can use for free
shadcn/ui code is available free of charge for local and commercial projects, subject to its license.
Paid features and costs
This library does not require a paid plan. Development and hosting of the finished application are separate from the free code license.
Access and limitations
shadcn/ui code is available free of charge for local and commercial projects, subject to its license. This library does not require a paid plan. Development and hosting of the finished application are separate from the free code license.
Use cases
- Custom components with source code you can copy
- Building a design system and forms
Example workflow
A possible workflow; this is not a report of hands-on testing.
Custom components with source code you can copy using shadcn/ui.
Before you start
- A working React; Tailwind CSS; Radix/Base UI project and a specific use case: custom components with source code you can copy.
- A design, interface states, or dataset; target screens and accessibility requirements.
Steps
- Check the project's stack and version against the current shadcn/ui documentation; add the package or the required source component.
- Implement the selected workflow with the supplied data, adapting styles and states to the project.
- Check the result in the target environment, remove sample data, and retain the notices required by the license.
Check your result
- The example works in the chosen tech stack, including target dimensions and input errors.
- Dependency size, keyboard behavior, and reduced motion suit the task; license terms are met.
Choosing shadcn/ui
Custom components with source code you can copy
Choose this when
- Custom components with source code you can copy
- Building a design system and forms
Consider alternatives when
- When choosing for this topic, compare shadcn/ui with Headless UI. A candidate to compare under the topic: UI components. This is an editorial connection by topic, not a confirmed alternative or a guarantee that the products work together.
- When choosing for this topic, compare shadcn/ui with Radix UI Primitives. A candidate to compare under the topic: UI components. This is an editorial connection by topic, not a confirmed alternative or a guarantee that the products work together.
Requirements
- Choose setup for a supported framework or the Existing Project route; CLI init creates the initial structure.
Things to consider
- Costs and limits of free use: This library does not require a paid plan. Development and hosting of the finished application are separate from the free code license.
- Terms of use: MIT: permits commercial use, modification, and distribution of the code at no charge, provided the license text and copyright notice are retained.
- Copied code becomes part of your application; the developer chooses and continues adapting components.
Frequently asked questions
What can you use for free in shadcn/ui?
shadcn/ui code is available free of charge for local and commercial projects, subject to its license.
What additional costs might arise with shadcn/ui?
This library does not require a paid plan. Development and hosting of the finished application are separate from the free code license.
What terms of use matter for shadcn/ui?
MIT: permits commercial use, modification, and distribution of the code at no charge, provided the license text and copyright notice are retained.
How do you get started with shadcn/ui?
Check the project's stack and version against the current shadcn/ui documentation; add the package or the required source component. Implement the selected workflow with the supplied data, adapting styles and states to the project. Check the result in the target environment, remove sample data, and retain the notices required by the license.
Can I add shadcn/ui to an existing project?
Yes. Installation separates creation through shadcn/create, CLI scaffolding, and Existing Project. The framework guide has separate steps for an existing application.
How does Laravel installation differ?
The documentation requires creating a Laravel application through laravel new first, then running shadcn init. CLI templates are provided for next, vite, start, react-router, and astro.
Related tasks and approaches
- Headless UI
A candidate to compare under the topic: UI components. This is an editorial connection by topic, not a confirmed alternative or a guarantee that the products work together.
- Radix UI Primitives
A candidate to compare under the topic: UI components. This is an editorial connection by topic, not a confirmed alternative or a guarantee that the products work together.
- shadcn/ui MCP
A candidate to compare under the topic: UI components. This is an editorial connection by topic, not a confirmed alternative or a guarantee that the products work together.
License
MIT: permits commercial use, modification, and distribution of the code at no charge, provided the license text and copyright notice are retained.
MIT — permissive license
You can use, modify, distribute, and sell the code, including in a closed-source commercial product. When sharing copies or substantial portions of the code, retain the license text and copyright notice. You do not need to open-source your entire project; the author provides no warranties.
License termsTechnologies and topics
- React
- Tailwind CSS
- Radix/Base UI
- components