You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+10-12
Original file line number
Diff line number
Diff line change
@@ -13,20 +13,17 @@ Rokkit provides both composable and data-driven components.
13
13
- Data-driven components, make it easier to build dynamic and reactive interfaces. One of the key benefits of this approach is that it allows developers to focus on the data and logic of their application, rather than the implementation of UI elements.
14
14
15
15
> Rokkit is currently under development and not feature complete yet.
16
+
> Rokkit has been rewritten to use Svelte 5 runes
17
+
> Some components are yet to be rewritten
16
18
17
19
## Libraries
18
20
19
-
Components have been separated into the following packages. Refer to the package [stories](sites/rokkit) for examples of all available UI components. View a live demo [here](https://rokkit.vercel.app/)
21
+
Components have been separated into the following packages. Refer to the [stories](sites/learn/lib/stories) for examples of all available UI components. View a live demo [here](https://rokkit.vercel.app/)
20
22
21
23
-[@rokkit/core](packages/core)
22
24
-[@rokkit/data](packages/data)
23
25
-[@rokkit/actions](packages/actions)
24
-
-[@rokkit/stores](packages/stores)
25
-
-[@rokkit/atoms](packages/atoms)
26
-
-[@rokkit/molecules](packages/molecules)
27
-
-[@rokkit/organisms](packages/organisms)
28
-
-[@rokkit/layout](packages/layout)
29
-
-[@rokkit/chart](packages/chart)
26
+
-[@rokkit/states](packages/states)
30
27
-[@rokkit/icons](packages/icons)
31
28
-[@rokkit/themes](packages/themes)
32
29
-[@rokkit/ui](packages/ui)
@@ -47,9 +44,10 @@ To use Rokkit in your Svelte project, simply import the desired control and use
47
44
```svelte
48
45
<script>
49
46
import { List } from '@rokkit/ui'
47
+
let items = $state(['a', 'b', 'c'])
50
48
</script>
51
49
52
-
<List items={['a', 'b', 'c']} />
50
+
<List bind:items />
53
51
```
54
52
55
53
## Data-Driven Controls
@@ -60,19 +58,19 @@ One of the key features of Rokkit is its data-driven controls. These controls au
60
58
<script>
61
59
import { List } from '@rokkit/ui'
62
60
63
-
let items = ['a', 'b', 'c']
64
-
let value
61
+
let items = $state(['a', 'b', 'c'])
62
+
let value = $state(null)
65
63
</script>
66
64
67
-
<List {items} bind:value />
65
+
<List bind:items bind:value />
68
66
```
69
67
70
68
## Themeable Controls
71
69
72
70
To apply a theme to your controls, simply pass a theme prop to the body element.
If you want to provide users the option of switching between dark theme and light mode or custom themes, then you can also use the `themable` action with the `ToggleThemeMode` component.
0 commit comments