0.41.0 • Published 10 months ago

chocobytes v0.41.0

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

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

  1. First install the chocobytes package:
pnpm add -D chocobytes
  1. 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

  1. (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

0.40.0

10 months ago

0.41.0

10 months ago

0.39.0

10 months ago

0.38.0

10 months ago

0.37.0

10 months ago

0.36.0

10 months ago

0.35.0

10 months ago

0.34.0

10 months ago

0.33.0

10 months ago

0.32.0

10 months ago

0.31.0

10 months ago

0.30.0

10 months ago

0.29.0

10 months ago

0.28.0

10 months ago

0.27.0

10 months ago

0.26.0

11 months ago

0.25.0

11 months ago

0.24.0

11 months ago

0.23.0

11 months ago

0.21.0

11 months ago

0.20.0

11 months ago

0.19.0

11 months ago

0.11.0

11 months ago

0.12.0

11 months ago

0.13.0

11 months ago

0.14.0

11 months ago

0.15.0

11 months ago

0.16.0

11 months ago

0.17.0

11 months ago

0.18.0

11 months ago

0.10.0

11 months ago

0.9.0

11 months ago

0.8.0

11 months ago

0.7.0

11 months ago

0.6.0

12 months ago

0.3.0

12 months ago

0.5.3

12 months ago

0.5.0

12 months ago

0.4.0

12 months ago

0.5.2

12 months ago

0.5.1

12 months ago

0.2.0

12 months ago

0.1.0

12 months ago

0.0.3

12 months ago

0.0.2

12 months ago

0.0.1

1 year ago