diff --git a/docs/app/views/examples/components/form_select/_preview.html.erb b/docs/app/views/examples/components/form_select/_preview.html.erb index 6398663ad2..d1d1165a89 100644 --- a/docs/app/views/examples/components/form_select/_preview.html.erb +++ b/docs/app/views/examples/components/form_select/_preview.html.erb @@ -59,6 +59,46 @@ <%= sage_component SageDivider, {} %> +
The Select component can display the "Help content" area to provide inline context alongside the label. This area allows text or other components, and may be useful when the Message area is occupied.
+ +<% sample_help_content = sage_component SageLink, { + url: "https://help.kajabi.com", + label: "What are payouts?", + external: true, + launch: true, + help_link: false, + show_label: true, + style: "secondary", + } %> + +<%= sage_component SageFormSelect, { + label: "Payout currency", + name: "payout_currency", + select_options: [ + { + text: "USD - United States Dollar", + value: "USD", + }, + { + text: "CAD - Canadian Dollar", + value: "CAD", + }, + { + text: "AUD - Australian Dollar", + value: "AUD", + }, + { + text: "GBP - British Pound", + value: "GBP", + }, + ], + message: "The payout currency determines the currency used when depositing funds to your bank account", + help_content: sample_help_content, +} %> + +<%= sage_component SageDivider, {} %> +The Select component can indicate an error state.
diff --git a/docs/app/views/examples/components/form_select/_props.html.erb b/docs/app/views/examples/components/form_select/_props.html.erb index 04c7d21794..238fd73aed 100644 --- a/docs/app/views/examples/components/form_select/_props.html.erb +++ b/docs/app/views/examples/components/form_select/_props.html.erb @@ -10,6 +10,12 @@