Comprehensive showcase of all input types, states, sizes, and variations available in the framework.
Text Inputs
Looks good!
Please check this field
This field is required
Colored help text
Colored help text
Gray help text (no color class)
Input Groups (Prepend/Append)
@
.00
$ .00
https:// www. .com 🔗
Tip: Use width utilities (
wr-* for rem-based, wp-* for percentage-based) on prepend/append elements to control their width.Input Types
Select Dropdowns
Textareas
Checkboxes & Radios
Width Variations
Code Examples
Basic Input with Sizes
<FormGroup> <FormLabel>Label</FormLabel> <Input placeholder="Enter text" /> <FormHelp>Help text</FormHelp> </FormGroup> <!-- Sizes: xs, sm, (default), lg, xl --> <Input size="xs" placeholder="Extra Small" /> <Input size="sm" placeholder="Small" /> <Input placeholder="Default" /> <Input size="lg" placeholder="Large" /> <Input size="xl" placeholder="Extra Large" />
Validation States
<!-- Success state --> <FormGroup state="success"> <FormLabel>Valid Input</FormLabel> <Input value="Correct value" /> <FormHelp>Looks good!</FormHelp> </FormGroup> <!-- Warning state --> <FormGroup state="warning"> <FormLabel>Warning</FormLabel> <Input value="Check this" /> <FormHelp>Please review</FormHelp> </FormGroup> <!-- Error state --> <FormGroup state="error"> <FormLabel>Invalid</FormLabel> <Input value="Wrong value" /> <FormHelp>This field is required</FormHelp> </FormGroup>
Input Groups (Prepend/Append)
<!-- With prepend -->
<InputGroup>
<InputGroupPrepend>@</InputGroupPrepend>
<Input placeholder="username" />
</InputGroup>
<!-- With append -->
<InputGroup>
<Input placeholder="0.00" />
<InputGroupAppend>.00</InputGroupAppend>
</InputGroup>
<!-- With both + button -->
<InputGroup>
<InputGroupPrepend>$</InputGroupPrepend>
<Input placeholder="Amount" />
<InputGroupAppend>.00</InputGroupAppend>
<Button variant="primary" isInputGroupButton>Go</Button>
</InputGroup>
<!-- Toggle Mode Button (Filter / Search) + Go -->
<InputGroup>
<Button variant="primary" isInputGroupButton onclick={toggleMode}>
<i class={isSearch ? 'fa-solid fa-magnifying-glass' : 'fa-solid fa-filter'}></i>
</Button>
<Input placeholder={isSearch ? 'Search...' : 'Filter...'} />
<Button variant="primary" isInputGroupButton>Go</Button>
</InputGroup>
<!-- Multiple prepends/appends -->
<InputGroup>
<InputGroupPrepend>https://</InputGroupPrepend>
<InputGroupPrepend>www.</InputGroupPrepend>
<Input placeholder="example" />
<InputGroupAppend>.com</InputGroupAppend>
</InputGroup> Select & Textarea
<!-- Select dropdown -->
<Select>
<option>Choose...</option>
<option>Option 1</option>
<option>Option 2</option>
</Select>
<!-- Multiple select (use native element) -->
<select class="pa-select" multiple>
<option>Option 1</option>
<option>Option 2</option>
</select>
<!-- Textarea -->
<Textarea placeholder="Enter message..." />
<Textarea rows={5} />Checkboxes & Radios
<!-- Checkbox group --> <CheckboxGroup> <Checkbox labelText="Option 1" checked /> <Checkbox labelText="Option 2" /> <Checkbox labelText="Disabled" disabled /> </CheckboxGroup> <!-- Radio group --> <RadioGroup name="demo"> <Radio labelText="Option A" checked /> <Radio labelText="Option B" /> <Radio labelText="Disabled" disabled /> </RadioGroup> <!-- Sizes: xs, sm, (default), lg, xl --> <Checkbox size="sm" labelText="Small" /> <Radio size="lg" labelText="Large" />
CSS Classes Reference
Text Inputs
pa-input- Base input stylingpa-input--xs- Extra small inputpa-input--sm- Small inputpa-input--lg- Large inputpa-input--xl- Extra large input
Select Dropdowns
pa-select- Base select stylingpa-select--xs- Extra small selectpa-select--sm- Small selectpa-select--lg- Large selectpa-select--xl- Extra large select
Textareas
pa-textarea- Base textarea stylingpa-textarea--xs- Extra small textareapa-textarea--sm- Small textareapa-textarea--lg- Large textareapa-textarea--xl- Extra large textarea
Input Groups
pa-input-group- Container for input with addonspa-input-group__prepend- Addon before inputpa-input-group__append- Addon after inputpa-input-group__button- Button addonpa-input-group--xs- Extra small input grouppa-input-group--sm- Small input grouppa-input-group--lg- Large input grouppa-input-group--xl- Extra large input group
Form Layout
pa-form- Form container with label stylingpa-form-group- Form field container with spacingpa-form-group--horizontal- Horizontal label/input layoutpa-form-actions- Container for form buttons
Validation States (on form-group)
pa-form-group--success- Success state (green border)pa-form-group--warning- Warning state (yellow border)pa-form-group--error- Error state (red border)
Validation States (on input)
pa-input--success,pa-select--success,pa-textarea--success- Success statepa-input--warning,pa-select--warning,pa-textarea--warning- Warning statepa-input--error,pa-select--error,pa-textarea--error- Error state
Theme Color Variants (on input)
pa-input--color-1throughpa-input--color-9- Theme color slotspa-select--color-1throughpa-select--color-9- Theme color slotspa-textarea--color-1throughpa-textarea--color-9- Theme color slots
Help Text
pa-form-help- Help text below inputpa-form-help--success- Success colored help textpa-form-help--warning- Warning colored help textpa-form-help--error- Error colored help textpa-form-help--color-1throughpa-form-help--color-9- Theme color slots
Checkboxes
pa-checkbox-group- Container for multiple checkboxespa-checkbox- Checkbox wrapper (label element)pa-checkbox__box- Custom checkbox visualpa-checkbox__label- Checkbox label textpa-checkbox--xs- Extra small checkboxpa-checkbox--sm- Small checkboxpa-checkbox--lg- Large checkboxpa-checkbox--xl- Extra large checkboxpa-checkbox--x- X mark instead of checkmarkpa-checkbox--disabled- Disabled state
Radio Buttons
pa-radio-group- Container for multiple radiospa-radio- Radio button wrapper (label element)pa-radio__label- Radio label textpa-radio--xs- Extra small radiopa-radio--sm- Small radiopa-radio--lg- Large radiopa-radio--xl- Extra large radio