@@ -22,7 +22,7 @@ def view_template
2222 ComboboxList do
2323 ComboboxEmptyState { "No result" }
2424
25- ComboboxListGroup label: "Fruits" do
25+ ComboboxListGroup( label: "Fruits") do
2626 ComboboxItem do
2727 ComboboxRadio(name: "food", value: "apple")
2828 span { "Apple" }
@@ -34,7 +34,7 @@ def view_template
3434 end
3535 end
3636
37- ComboboxListGroup label: "Vegetable" do
37+ ComboboxListGroup( label: "Vegetable") do
3838 ComboboxItem do
3939 ComboboxRadio(name: "food", value: "brocoli")
4040 span { "Broccoli" }
@@ -46,7 +46,7 @@ def view_template
4646 end
4747 end
4848
49- ComboboxListGroup label: "Others" do
49+ ComboboxListGroup( label: "Others") do
5050 ComboboxItem do
5151 ComboboxRadio(name: "food", value: "chocolate")
5252 span { "Chocolate" }
@@ -123,6 +123,26 @@ def view_template
123123 RUBY
124124 end
125125
126+ render Docs ::VisualCodeExample . new ( title : "Disabled" , context : self ) do
127+ <<~RUBY
128+ div(class: "w-96") do
129+ Combobox do
130+ ComboboxTrigger(disabled: true, placeholder: "Pick value")
131+ end
132+ end
133+ RUBY
134+ end
135+
136+ render Docs ::VisualCodeExample . new ( title : "Aria Disabled" , context : self ) do
137+ <<~RUBY
138+ div(class: "w-96") do
139+ Combobox do
140+ ComboboxTrigger(aria: {disabled: "true"}, placeholder: "Pick value")
141+ end
142+ end
143+ RUBY
144+ end
145+
126146 render Components ::ComponentSetup ::Tabs . new ( component_name : "Combobox" )
127147
128148 render Docs ::ComponentsTable . new ( component_files ( "Combobox" ) )
0 commit comments