Skip to content

kaevupoiss/radix-svelte

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Radix Svelte

Description

This is a port of Radix UI for Svelte.

Design Principles

This is not a 1:1 re-implementation of Radix UI. The goal is to provide a similar API and experience, but with a few differences:

  • Two-way binding is used instead of event handlers.
  • No asChild prop (for now).

Usage

Install the package:

npm install radix-svelte
# or yarn, pnpm, etc.

Import the components you need:

<script>
	import { Toggle } from 'radix-svelte';

	let pressed = false;
</script>

<Toggle.Root bind:pressed>
	{pressed ? 'Pressed' : 'Not pressed'}
</Toggle.Root>

Roadmap

You can check the planned features and bugs in the issues tab

Contributing

Check out our contributing guide

Community

About

A port of Radix UI for Svelte

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Svelte 59.4%
  • TypeScript 33.5%
  • JavaScript 4.7%
  • Shell 1.1%
  • Other 1.3%