Skip to content

Commit c098f6d

Browse files
committed
Add "list" to input
1 parent 46c2b27 commit c098f6d

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@freenit-framework/core",
3-
"version": "0.0.52",
3+
"version": "0.0.53",
44
"private": false,
55
"author": "Goran Mekić <meka@tilda.center>",
66
"license": "BSD-2-Clause",

src/lib/Input.svelte

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<script lang="ts">
2-
let { autofocus = false, required = false, label, name, type, value = $bindable() } = $props()
2+
let { autofocus = false, required = false, label, name, type, value = $bindable(), list = '' } = $props()
33
let focused = $state(value.length > 0)
44
let input: HTMLElement
55
@@ -48,6 +48,7 @@
4848
onblur={blur}
4949
bind:value
5050
bind:this={input}
51+
{list}
5152
/>
5253
</div>
5354

src/routes/app.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,5 +33,5 @@ body {
3333
--font-size: 1.6rem;
3434
--font-color: #333333;
3535
--font-family-sans: sans-serif;
36-
--font-family-mono: monaco, 'Consolas', 'Lucida Console', monospace;
36+
--font-family-mono: monaco, Consolas, 'Lucida Console', monospace;
3737
}

0 commit comments

Comments
 (0)