Skip to content

Commit

Permalink
Merge pull request #36 from formsible/long/form-style
Browse files Browse the repository at this point in the history
Long/form style
  • Loading branch information
tewnut authored Jan 15, 2025
2 parents 8e50470 + 1ae3a3e commit effb84c
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/components/checkboxes/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ const isRequired = computed(() =>
v-model="model"
:value="option.value"
:input-id="option.value"
:disabled="option.disabled"
v-bind="{ ...$attrs, ...props.input.props }"
/>
<label :for="option.value">{{ option.label }}</label>
Expand Down
12 changes: 10 additions & 2 deletions src/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -146,9 +146,17 @@
"description": "Select one or more options.",
"placeholder": "Choose options",
"choices": [
{ "label": "Option 1", "value": "option1" },
{
"label": "Option 1",
"value": "option1",
"disabled": true
},
{ "label": "Option 2", "value": "option2" }
]
],
"defaultValue": "option1",
"props": {
"defaultValue": ["option1"]
}
}
}
}
Expand Down
1 change: 1 addition & 0 deletions src/types/input.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export interface IFile {
export interface InputChoice {
label: string // Display label for the choice
value: string // Value associated with the choice
disabled: boolean
src: string // Source path or URL related to the choice
}

Expand Down

0 comments on commit effb84c

Please sign in to comment.