Build with RicoUI.
Add a component to your React project, try it, and customize the source.
Getting started
Choose a component in Browse and try its live preview. Open Component information for its props, usage example, and any extra dependencies. Use Show source code to read the implementation.
You need a React project with Tailwind CSS 4 configured. RicoUI components are source files you add to that project and edit directly.
Install with the CLI
Choose your package manager in the install bar below the component preview. Copy the command and run it from your project folder. For example:
npx shadcn@latest add https://blocks.ricoui.com/r/flip-switch.jsonThe shadcn CLI adds the component source and its declared dependencies. You do not need to use shadcn/ui components.
Once installed, import and render the component in your project.
Copy source
On a component page, choose Show source code and copy the full source. Save it as a .tsx file in your project, such as src/components/ui/flip-switch.tsx.
If the component lists extra packages under Dependencies in Component information, install them with your package manager. Then import and render the component.
Use the component
After installing with the CLI or copying the source, import the component into a page or another component:
import { FlipSwitch } from "@/components/ui/flip-switch" export function Example() { return <FlipSwitch aria-label="Enable notifications" />}Adjust the import path to match the file’s location. The @/ alias is only an example; a relative path works too. Each component’s Usage section shows its named export and example props.
Customization
Check Props in the Component information panel for the available options. Use className where supported, or edit the source to change colors, motion, and markup.
Customize controls only change the live preview. Apply the settings you like as props or styles in your project; copied and installed source keeps the component’s defaults.
The website’s theme switch changes the site, not every component preview. Some components keep a fixed palette or background, so check their props and source when adapting them to your theme.
Accessibility
When adapting a component, keep button and link labels clear and keyboard focus visible. Check that the interaction still works with a keyboard and on touch devices.
If you change the animation, preserve its reduced-motion handling and try it with reduced motion enabled on your device.
License
RicoUI’s own code is available under the MIT License. You can use and modify it in personal and commercial projects. Include the copyright and license notice with copies or substantial portions of the code.
Third-party code, fonts, and other assets retain their own licenses and notices. The website’s TechText and PixelReveal effects use a separate license with additional restrictions; it is preserved alongside their source. Templates are separate projects, so check the license in each template’s repository.