Skip to content

Commit 541a4ab

Browse files
authored
Merge pull request #60 from substancelab/document_select_hint
Add an example of Select with hint
2 parents 9eae668 + cd33a35 commit 541a4ab

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

demo/test/components/previews/select_preview.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,10 @@ def multiple_select
5252
render(Flowbite::InputField::Select.new(attribute: :company, form: form, collection: ["Option 1", "Option 2", "Option 3"], multiple: true, label: {content: "With <code>multiple: true</code>".html_safe}))
5353
end
5454

55+
def with_hint
56+
render(Flowbite::InputField::Select.new(attribute: :company, form: form, collection: ["Option 1", "Option 2", "Option 3"], hint: {content: "Pick one of the above options"}))
57+
end
58+
5559
# @!endgroup
5660

5761
private

0 commit comments

Comments
 (0)