File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -15,13 +15,13 @@ export let checked = false
1515export let disabled = false
1616/** @type {boolean} if the label should be uppercase or not */
1717export let uppercase = false
18+ /** @type {string} random id prefixed with checkbox- for the input id*/
19+ export let inputID = generateRandomID (' checkbox-' )
1820
1921let checkboxElement = {}
2022let formFieldElement = {}
2123let checkbox
2224
23- const inputID = generateRandomID (' checkbox-' )
24-
2525$: if (checkbox) checkbox .checked = checked
2626
2727onMount (() => {
Original file line number Diff line number Diff line change @@ -36,6 +36,7 @@ declare module '@silintl/ui-components' {
3636 disabled ?: boolean
3737 uppercase ?: boolean
3838 class ?: string
39+ inputID ?: string
3940 }
4041 export class Checkbox extends SvelteComponentTyped < CheckboxProps > { }
4142
You can’t perform that action at this time.
0 commit comments