Components
- Accordion
- Action Bar
- Alert Dialog
- Alert
- Announcement
- Aspect Ratio
- Autocomplete
- Avatar
- Badge
- Bottom Navigation
- Breadcrumb
- Button Group
- Button
- Calendar
- Card
- Carousel
- Chart
- Checkbox
- Circular Progress
- Circular Slider
- Clipboard
- Collapsible
- Color Picker
- Combobox
- Command
- Context Menu
- Data List
- Date Picker
- Dialog
- Drawer
- Editable
- Field
- File Upload
- Float
- Floating Panel
- Frame
- Hint
- Hover Card
- Image Cropper
- Input Group
- Input OTP
- Input
- Item
- Kbd
- Link Overlay
- Listbox
- Marquee
- Menu
- Native Select
- Number Input
- Pagination
- Popover
- Progress
- Prose
- QR Code
- Radio Group
- Rating
- Resizable
- Scroll Area
- Segment Group
- Select
- Separator
- Sheet
- Sidebar
- Signature Pad
- Skeleton
- Skip Nav
- Slider
- Spinner
- Status
- Steps
- Switch
- Table
- Tabs
- Textarea
- Timer
- Toast
- Toggle Group
- Toggle Tooltip
- Toggle
- Tooltip
- Tour
- Tree View
React Router
Install Shark UI in a React Router project.
Create project
pnpm dlx create-react-router@latest my-app.json
Run the CLI
Run the shadcn init command to set up components.json and path aliases:
pnpm dlx shadcn@latest init.json
Add components
Add components from the Shark registry:
pnpm dlx shadcn@latest add https://shark.vini.one/r/button.json
Import and use them in your routes:
import { Button } from "~/components/ui/button" import type { Route } from "./+types/home" export const meta = ({}: Route.MetaArgs) => { return [ { title: "New React Router App" }, { name: "description", content: "Welcome to React Router!" }, ] } export default function Home() { return ( <div className="flex min-h-svh flex-col items-center justify-center"> <Button>Click me</Button> </div> ) }