diff --git a/docs/content/2.components/checkbox.md b/docs/content/2.components/checkbox.md index 3308668afc..55ac188168 100644 --- a/docs/content/2.components/checkbox.md +++ b/docs/content/2.components/checkbox.md @@ -87,6 +87,10 @@ slots: [Label]{.italic} :: +### `help` :u-badge{label="New" class="align-middle ml-2 !rounded-full" variant="subtle"} + +Like the `#label` slot, use the `#help` slot to override the content of the help text. + ## Props :component-props diff --git a/docs/content/2.components/radio-group.md b/docs/content/2.components/radio-group.md index e8cbc7b5d0..fdb7ad21e1 100644 --- a/docs/content/2.components/radio-group.md +++ b/docs/content/2.components/radio-group.md @@ -126,6 +126,10 @@ slots: [Label]{.italic} :: +### `help` :u-badge{label="New" class="align-middle ml-2 !rounded-full" variant="subtle"} + +Like the `#label` slot, use the `#help` slot to override the content of the help text. + ### `legend` Use the `#legend` slot to override the content of the legend. diff --git a/src/runtime/components/forms/Checkbox.vue b/src/runtime/components/forms/Checkbox.vue index e67c7236ae..7c98b9402d 100644 --- a/src/runtime/components/forms/Checkbox.vue +++ b/src/runtime/components/forms/Checkbox.vue @@ -17,11 +17,13 @@
-

- {{ help }} +

+ + {{ help }} +

diff --git a/src/runtime/components/forms/Radio.vue b/src/runtime/components/forms/Radio.vue index b1bc9e1764..a2bb8405a8 100644 --- a/src/runtime/components/forms/Radio.vue +++ b/src/runtime/components/forms/Radio.vue @@ -16,11 +16,13 @@
-

- {{ help }} +

+ + {{ help }} +

diff --git a/src/runtime/components/forms/RadioGroup.vue b/src/runtime/components/forms/RadioGroup.vue index 88a6dedd81..c44bb383a4 100644 --- a/src/runtime/components/forms/RadioGroup.vue +++ b/src/runtime/components/forms/RadioGroup.vue @@ -20,6 +20,10 @@ + +