Button
Actions, links, loading states, and a little feedback.
Built for Svelte 5 & SvelteKit 3
Good defaults. Reactive managers. Room to make it yours. Build your next project with a UI library that fits the way you work.
npm install sveltekit-uiSvelte 5 · SvelteKit 3 · JavaScript
A little space for your next big idea.
A live example. Try the controls.
Managers keep behavior in one place.
Shared tokens for light and dark.
Small pieces, useful possibilities.
The building blocks
Explore the live examples, then make them your own.
Actions, links, loading states, and a little feedback.
From a simple field to passwords and validation.
Searchable options, multiple selections, and more.
Give menus and small dialogs a place to live.
Bring structure to data with sorting and filtering.
Turn your numbers into something easy to read.
A small first step
Import the shared styles once in your root layout. Create a manager, pass it to the component, and you’re ready to go.
The manager owns state and behavior.
The component takes care of rendering.
<script>
import "sveltekit-ui/style.css"
import { Button, create_button_manager } from "sveltekit-ui"
const save = create_button_manager({
text: "Save changes",
on_click: () => console.log("Saved"),
})
</script>
<Button manager={save} />The starter sets up a project with SvelteKit UI.
npx create-sveltekit-ui-site my-projectOne system, your style
Set your brand hue and chroma through shared CSS tokens. Use the adaptive -t colors for surfaces and text, and let Layout handle the theme.
:root {
--primary-h: calc(var(--h14) + 6);
--primary-c: var(--c16);
}
.card {
color: var(--g4-t);
background: var(--bg2);
}Keep exploring
Watch the overview for a closer look at the library and its manager pattern.
54 component definitions and examples in one copyable reference.