chocobytes v0.41.0
Choco UI
A UI-kit for Svelte 5 providing you with building blocks for composable, extendable, reactive, SSR-ready UI components and headless classes.
Getting Started
- First install the
chocobytes
package:
pnpm add -D chocobytes
- Then configure your
svelte.config.js
by adding the choco preprocessor:
import { vitePreprocess } from "@sveltejs/vite-plugin-svelte";
import { chocoPreprocess } from "chocobytes/preprocessor";
export default {
preprocess: [chocoPreprocess(), vitePreprocess()],
//... rest of your Svelte config
};
The preprocessor expands the use:choco
shorthand syntax. Learn more
- (Recommended). To copy the component, headless and mixin files to your own project folder, run:
npx chocobytes
This way you own the files and can easily customize and tweak them or learn from them. Also copy-pasting examples from the documentation will just work, without adjusting the imports.
Architecture
A few building blocks allow us to build the headless classes and corresponding UI components.
These building blocks are the Toggleable
, Group
and Triggerable
.
Credits
- Melt - https://melt-ui.com
- shadcn-svelte - https://www.shadcn-svelte.com
- HeadlessUI - https://headlessui.com
- ReactAria - https://react-spectrum.adobe.com/react-aria
- Skeleton - https://skeleton.dev
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
12 months ago
12 months ago
12 months ago
12 months ago
12 months ago
12 months ago
12 months ago
12 months ago
12 months ago
12 months ago
12 months ago
1 year ago