Param | Description | Input |
---|---|---|
The label content |
|
|
The hint content |
|
|
Copy to include as a blank option at the top of the select. |
|
|
Is the input disabled? |
|
|
Is the input read only? |
|
|
Show an error messsage? |
|
|
Should the input be full-width? |
|
modifiers = [readonly ? :readonly : nil, disabled ? :disabled : nil, full_width ? 'full-width' : nil].compacterror = 'Error: Berry selection is required' if erroroptions = safe_join(%w[blueberry raspberry gooseberry].map { |v| tag.option(v, value: v) })render DesignSystem::Form::SelectInputComponent.new(options:, id: :fruit, label:, hint:, include_blank:, modifiers:, error:)