Skip to content

Input Group

Input groups attach text, icons, buttons and dropdowns to the side of a field - perfect for currencies, usernames, search boxes, coupon codes and quantity steppers.

1Prefix text

A leading @ shows that the field expects a username.

@

2Suffix text

A trailing domain helps when the email address is part of a company account.

@miraly.com

3Both sides

Currency symbol before and cents after the amount.

$.00

4Web address

Prefix and suffix around a subdomain for a store or workspace address.

www..shop

5Sizes

input-group-lg and input-group-sm resize every part of the group.

6Button addon

A search field with its submit button attached.

7Quantity stepper

Minus and plus buttons around a centred number.

8Dropdown addon

A dropdown button lets people switch the currency of an amount.

9Split button

A main action plus a menu of related actions next to the input.

10Checkbox addon

A checkbox in the addon enables or confirms the value next to it.

11Multiple inputs

Two inputs share one group and one visible label.

Full name

12Multiple addons

Several addons can be stacked on the same side.

$USD/ hour

13Icon addons

Icons instead of text make contact fields recognisable at a glance.

14Textarea group

Input groups also work with textareas.

Delivery note

15Select with button

A select and an action button combined, for example to add a member.

16Password field

A lock icon in front and a show / hide toggle behind the password.

17Copy invite link

A read-only field with a copy button using the data-demo-copy behaviour.

18Coupon code

Apply button with a success hint once a code was accepted.

Code applied - you save $25.14.

19Validation in a group

has-validation keeps rounded corners correct when feedback follows the input.

@
This handle is already taken.

20Pill search group

A rounded search group with an icon button, styled with a tl- class.