More skills fixing

This commit is contained in:
Dominic Ferrando
2026-07-25 20:36:53 -04:00
parent b76f91700f
commit aab1495b7e
68 changed files with 1186 additions and 0 deletions
@@ -0,0 +1,16 @@
## Function bindings
You can also use `bind:property={get, set}`, where `get` and `set` are functions, allowing you to perform validation and transformation:
```svelte
<input bind:value={() => value, (v) => (value = v.toLowerCase())} />
```
In the case of readonly bindings like [dimension bindings](#Dimensions), the `get` value should be `null`:
```svelte
<div bind:clientWidth={null, redraw} bind:clientHeight={null, redraw}>...</div>
```
> [!NOTE]
> Function bindings are available in Svelte 5.9.0 and newer.