# shadcn-svelte

> The Svelte 5 port of shadcn/ui: copy-in Tailwind components on bits-ui.

Source: https://tastebase.ehsanulsiam.workers.dev/browse/shadcn-svelte

free

The Svelte 5 port of shadcn/ui: copy-in Tailwind components on bits-ui.

by Hunter Johnston (huntabyte)[GitHub](https://github.com/huntabyte/shadcn-svelte)[npm](https://npmjs.com/package/shadcn-svelte)

[visit](https://www.shadcn-svelte.com/?utm_source=tastebase&utm_medium=referral&utm_content=detail-page)

[https://www.shadcn-svelte.com](https://www.shadcn-svelte.com/?utm_source=tastebase&utm_medium=referral&utm_content=detail-preview)

## Try these

no preview

### [Bits UI](https://tastebase.ehsanulsiam.workers.dev/browse/bits-ui)

Headless, accessible Svelte 5 primitives, the base of shadcn-svelte.

no preview

### [Ark UI](https://tastebase.ehsanulsiam.workers.dev/browse/ark-ui)

Headless, accessible components with one API across React, Vue, Svelte and Solid, built on Zag state machines.

no preview

### [Lucide](https://tastebase.ehsanulsiam.workers.dev/browse/lucide)

Clean 24px stroke icons, one component per icon, the default set for shadcn/ui.

no preview

### [Kobalte](https://tastebase.ehsanulsiam.workers.dev/browse/kobalte)

Unstyled, accessible SolidJS primitives, the base of most Solid component kits.

## Looks that pick it

[Minimal](https://tastebase.ehsanulsiam.workers.dev/looks/minimal)[Apple-like](https://tastebase.ehsanulsiam.workers.dev/looks/apple)[Corporate / dashboard](https://tastebase.ehsanulsiam.workers.dev/looks/corporate)[Technical / dev-tool](https://tastebase.ehsanulsiam.workers.dev/looks/technical)[Organic / soft](https://tastebase.ehsanulsiam.workers.dev/looks/organic)[Mesh gradient](https://tastebase.ehsanulsiam.workers.dev/looks/mesh-gradient)[Grainy gradient](https://tastebase.ehsanulsiam.workers.dev/looks/grainy-gradient)[Neumorphism](https://tastebase.ehsanulsiam.workers.dev/looks/neumorphism)[macOS desktop](https://tastebase.ehsanulsiam.workers.dev/looks/macos-desktop)[Soft pastel](https://tastebase.ehsanulsiam.workers.dev/looks/soft-pastel)[Earthy / biophilic](https://tastebase.ehsanulsiam.workers.dev/looks/earthy)[Japandi](https://tastebase.ehsanulsiam.workers.dev/looks/japandi)[and 10 more](https://tastebase.ehsanulsiam.workers.dev/looks)

## For your agent

##### Install

`npx shadcn-svelte@latest init && npx shadcn-svelte@latest add button`

##### Use it for

- a SvelteKit app that wants the shadcn look with owned source
- Svelte dashboards: data tables, forms (with Superforms), sidebar, command menu
- a calm Svelte form or scheduler with a date and time picker, switches and a combobox to tag people

##### Skip it when

- you only need behaviour with your own styling: use bits-ui
- a Svelte 4 codebase: current versions are Svelte 5 runes only
- React or Vue: use shadcn-ui or shadcn-vue

##### What's inside56 free

- Accordion
- Alert
- Alert Dialog
- Aspect Ratio
- Avatar
- Badge
- Breadcrumb
- Button
- Button Group
- Calendar
- Card
- Carousel
- Chart
- Checkbox
- Collapsible
- Command
- Context Menu
- Data Table
- Dialog
- Drawer
- Dropdown Menu
- Empty
- Field
- Form
- Hover Card
- Input
- Input Group
- Input OTP
- Item
- Kbd
- Label
- Menubar
- Native Select
- Navigation Menu
- Pagination
- Popover
- Progress
- Radio Group
- Range Calendar
- Resizable
- Scroll Area
- Select
- Separator
- Sheet
- Sidebar
- Skeleton
- Slider
- Sonner
- Spinner
- Switch
- Table
- Tabs
- Textarea
- Toggle
- Toggle Group
- Tooltip

##### Facts

**Frameworks**
svelte

**Styling**
copy-in

**Weight**
small

**Accessibility**
strong

**Maturity**
stable

**License**
MIT

**Price**
Free

##### Pairs with

[Bits UI](https://tastebase.ehsanulsiam.workers.dev/browse/bits-ui)[Lucide](https://tastebase.ehsanulsiam.workers.dev/browse/lucide)

##### Alternatives

[Bits UI](https://tastebase.ehsanulsiam.workers.dev/browse/bits-ui)[Ark UI](https://tastebase.ehsanulsiam.workers.dev/browse/ark-ui)

[Compare shadcn-svelte with its alternatives](https://tastebase.ehsanulsiam.workers.dev/alternatives/shadcn-svelte-alternatives)

```
<script lang="ts">
  import { Button } from "$lib/components/ui/button/index.js"
</script>

<Button variant="outline" onclick={save}>Save</Button>
```

https://www.shadcn-svelte.com/blocks

Loading website

[Visit](https://www.shadcn-svelte.com/?utm_source=tastebase&utm_medium=referral&utm_content=floating-pill)
