View on npm https://www.npmjs.com/package/sveltekit-uiLink Preview
Install using:
npm i sveltekit-ui
Quick start with our recommended starter template:
npx create-sveltekit-ui-site my-project
Our components use Svelte 5 Runes and are primarily built in JavaScript. This architecture gives you complete control over your component tree via a single parent object, which you can pass down through your HTML and CSS components as needed.
After extensive work, we are excited to announce a public release as of July 2025, and we welcome you to use and contribute to sveltekit-ui.
For easier building, check out the contibase code generator https://www.contibase.com/code_generatorLink Preview
<script>
import {
create_button_manager,
Button,
create_text_input_manager,
TextInput,
copy_to_clipboard,
} from "sveltekit-ui"
let manager = $state(null)
function create_manager() {
let text_input_manager = $state()
let copy_button_manager = $state()
function init() {
text_input_manager = create_text_input_manager({
placeholder: "some text here",
})
copy_button_manager = create_button_manager({
text: "Copy Text",
is_compressed: true,
is_success_animation: true,
on_click: () => copy_to_clipboard(text_input_manager?.val),
})
}
init()
return {
get text_input_manager() {
return text_input_manager
},
get copy_button_manager() {
return copy_button_manager
},
}
}
manager = create_manager()
</script>
<div style="margin: 1rem; display: flex; gap: 1rem;">
<TextInput manager={manager?.text_input_manager} />
<Button manager={manager?.copy_button_manager} />
</div>
Explore the documentation to learn more about each component and for further usage examples.
Questions? Email info@sveltekit-ui.com