Skip to content

Commit 9d704c2

Browse files
committed
Make Checkbox example with a hint work again
Use the Checkbox as it is intended to be used, passing a hash for the hint.
1 parent 7ee7fbf commit 9d704c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

demo/test/components/previews/checkbox_preview.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def disabled_checked_check_box
5555
# the checkbox component.
5656

5757
def checkbox_with_helper_text
58-
render(Flowbite::InputField::Checkbox.new(attribute: :confirmation, form: form, hint: "I agree with the terms and conditions."))
58+
render(Flowbite::InputField::Checkbox.new(attribute: :confirmation, form: form, hint: {content: "I agree with the terms and conditions."}))
5959
end
6060

6161
# @!endgroup

0 commit comments

Comments
 (0)