- Accordion
- Action BarUpdated
- Alert Dialog
- Alert
- Announcement
- Aspect Ratio
- Autocomplete
- Avatar
- BadgeUpdated
- Bottom Navigation
- Breadcrumb
- Button Group
- Button
- CalendarUpdated
- CardUpdated
- Carousel
- Chart
- Checkbox
- Circular Progress
- Circular Slider
- Clipboard
- Collapsible
- Color Picker
- Combobox
- Command
- Context MenuUpdated
- Data List
- Date Picker
- DialogUpdated
- DrawerUpdated
- Editable
- FieldUpdated
- File Upload
- Float
- Floating Panel
- Frame
- Hint
- Hover Card
- Image Cropper
- Input Group
- Input OTP
- Input
- Item
- Kbd
- Link Overlay
- Listbox
- MarqueeUpdated
- Menu
- Native Select
- Number InputUpdated
- 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
- TableUpdated
- Tabs
- Textarea
- TimerUpdated
- ToastUpdated
- Toggle Group
- Toggle Tooltip
- Toggle
- Tooltip
- Tour
- Tree View
Laravel
Install Shark UI in a Laravel project.
The shadcn CLI does not scaffold a new Laravel app. Start by creating a Laravel app with the React starter kit, then choose how you want to configure Shark UI.
Create Project#
Create a new Laravel app using the Laravel installer:
laravel new my-app
If you already have a Laravel app with React and Inertia configured, skip this step.
Choose the React starter kit when prompted. For more information, see the official Laravel frontend documentation.
Then move into your project directory:
cd my-app
Use the Shark Preset#
Run the Command#
Run the init command with the Shark preset and the Laravel template from the root of your Laravel app:
pnpm dlx shadcn@latest init @shark/style -t laravel
When asked to overwrite components.json and components, choose Yes.
Add Components#
You can add components with the CLI or copy them manually from the component docs:
- CLI: Run
npx shadcn@latest add @shark/<component>(e.g.button,dialog). - Manual: Copy component source from Manual tab in the component docs.
For example, add the Switch component to your project:
pnpm dlx shadcn@latest add @shark/switch
You can also install every component at once:
pnpm dlx shadcn@latest add @shark/ui
Then import and use components like this:
import { Switch } from "@/components/ui/switch"; const MyPage = () => { return ( <div> <Switch /> </div> ); }; export default MyPage;
Use the CLI#
Run the CLI#
Run the shadcn init command with the Shark preset from the root of your Laravel app:
pnpm dlx shadcn@latest init @shark/style
When asked to overwrite components.json and components, choose Yes.
Add Components#
You can add components with the CLI or copy them manually from the component docs:
- CLI: Run
npx shadcn@latest add @shark/<component>(e.g.button,dialog). - Manual: Copy component source from Manual tab in the component docs.
For example, add the Switch component to your project:
pnpm dlx shadcn@latest add @shark/switch
You can also install every component at once:
pnpm dlx shadcn@latest add @shark/ui
Then import and use components like this:
import { Switch } from "@/components/ui/switch"; const MyPage = () => { return ( <div> <Switch /> </div> ); }; export default MyPage;