|
26 | 26 | elements. |
27 | 27 | </p> |
28 | 28 |
|
29 | | - <div class="not-prose bg-white border border-gray-200 rounded-lg p-6 my-6"> |
30 | | - <.basic_combobox_demo {assigns} /> |
| 29 | + <div class="not-prose"> |
| 30 | + <.code_example file="combobox/basic.html.heex" id="basic-combobox-demo" /> |
31 | 31 | </div> |
32 | 32 |
|
33 | 33 | <p> |
|
45 | 45 | The component automatically switches to async mode with debounced search queries. |
46 | 46 | </p> |
47 | 47 |
|
48 | | - <div class="not-prose bg-white border border-gray-200 rounded-lg p-6 my-6"> |
49 | | - <.live_component module={PrimaWeb.DemoLive.AsyncComboboxDemo} id="async-combobox-demo" /> |
| 48 | + <div class="not-prose"> |
| 49 | + <.code_example module={PrimaWeb.DemoLive.AsyncComboboxDemo} id="async-combobox-demo" /> |
50 | 50 | </div> |
51 | 51 |
|
52 | 52 | <p> |
|
63 | 63 | Perfect for tags, categories, or any user-generated content scenarios. |
64 | 64 | </p> |
65 | 65 |
|
66 | | - <div class="not-prose bg-white border border-gray-200 rounded-lg p-6 my-6"> |
67 | | - <.creatable_combobox_demo {assigns} /> |
| 66 | + <div class="not-prose"> |
| 67 | + <.code_example file="combobox/creatable.html.heex" id="creatable-combobox-demo" /> |
68 | 68 | </div> |
69 | 69 |
|
70 | 70 | <p> |
|
79 | 79 | component to display selected items as removable pills. |
80 | 80 | </p> |
81 | 81 |
|
82 | | - <div class="not-prose bg-white border border-gray-200 rounded-lg p-6 my-6"> |
83 | | - <.multi_select_combobox_demo {assigns} /> |
| 82 | + <div class="not-prose"> |
| 83 | + <.code_example file="combobox/multi_select.html.heex" id="multi-select-combobox-demo" /> |
84 | 84 | </div> |
85 | 85 |
|
86 | 86 | <p> |
|
107 | 107 | It automatically flips to the opposite side when there's insufficient space. |
108 | 108 | </p> |
109 | 109 |
|
110 | | - <div class="not-prose bg-white border border-gray-200 rounded-lg p-6 my-6"> |
111 | | - <.positioned_combobox_demo /> |
| 110 | + <div class="not-prose"> |
| 111 | + <.code_example file="combobox/positioned.html.heex" id="positioned-combobox-demo" /> |
112 | 112 | </div> |
113 | 113 |
|
114 | 114 | <p> |
|
122 | 122 | The component is completely unstyled, giving you full control over the visual presentation. |
123 | 123 | </p> |
124 | 124 |
|
125 | | - <div class="not-prose bg-white border border-gray-200 rounded-lg p-6 my-6"> |
126 | | - <.flexible_markup_demo {assigns} /> |
| 125 | + <div class="not-prose"> |
| 126 | + <.code_example file="combobox/flexible_markup.html.heex" id="flexible-markup-combobox-demo" /> |
127 | 127 | </div> |
128 | 128 |
|
129 | 129 | <p> |
|
0 commit comments