Input Group

Add additional information or actions to an input or textarea.

12 results
https://
52% used

Icon

Text

Display additional text information alongside inputs.

$
USD
https://
.com
@company.com
120 characters left

Button

Add buttons to perform actions within the input group.

Your connection is not secure.

You should not enter any sensitive information on this site.

https://

Tooltip

Add Add tooltips to provide additional context or help.

Textarea

Input groups also work with textarea components. Use block-start or block-end for alignment.

Line 1, Column 1
script.js

Spinner

Show loading indicators while processing input.

Saving...
Please wait...

Label

Add labels within input groups to improve accessibility.

Dropdown

Pair input groups with dropdown menus for complex interactions.

Button Group

Wrap input groups with button groups to create prefixes and suffixes.

.com

Anatomy

Import all parts and piece them together.

use leptos::prelude::*;
use singlestage::*;

#[component]
pub fn InputGroupAnatomy() -> impl IntoView {
    view! {
        <InputGroup>
            <Input />
            <InputGroupAddon>
                <InputGroupText />
            </InputGroupAddon>
        </InputGroup>
    }
}

API Reference

InputGroup

The main component that wraps inputs and addons.

Custom Attributes
NameTypeDefaultDescription
disabledboolfalse

Toggle whether or not this input group should appear disabled.

Implements global attributes.

InputGroupAddon

Displays icons, text, buttons, or other content alongside inputs.

Custom Attributes
NameTypeDefaultDescription
alignString"inline-start"

Set how child content should be aligned. Accepted values are inline-start | inline-end | block-start | block-end.

Implements global attributes.

Button

InputGroup uses a regular Button with slightly different behavior.

Custom Attributes
NameTypeDefaultDescription
button_typeString"button"

Renamed <button> `type` attribute to avoid name collisions.

sizeString"xs"

Specify the size to render the button. Sizes: xs | icon-xs | sm | icon-sm.

variantString"ghost"

Specify the style of button to render. Variants: primary | secondary | outline | ghost | link | destructive

Implements global and button attributes.

InputGroupText

A styled wrapper for displaying text and icons in an InputGroup.

Implements global attributes.