beta-shadui
Version:
Beautifully designed components built with Svelte 5, Tailwind CSS, and bits-ui
58 lines (42 loc) • 887 B
Markdown
# @shadcn-svelte/ui
Beautifully designed components built with Svelte 5, Tailwind CSS, and bits-ui.
## Installation
```bash
pnpm add @shadcn-svelte/ui
```
## Usage
1. Add the following to your `tailwind.config.js`:
```js
/** @type {import('tailwindcss').Config} */
export default {
content: [
"./src/**/*.{html,js,svelte,ts}",
"./node_modules/@shadcn-svelte/ui/**/*.{js,ts,svelte}",
],
theme: {
extend: {},
},
plugins: [
require("@tailwindcss/forms"),
require("@tailwindcss/typography"),
require("@tailwindcss/container-queries"),
],
}
```
2. Import and use components:
```svelte
<script>
import { Button } from '@shadcn-svelte/ui'
</script>
<Button>Click me</Button>
```
## Components
- Button
- [List other available components]
## Development
```bash
pnpm install
pnpm dev
```
## License
MIT © [hermny](https://github.com/hermny)