skip to the page
superthread
componentsinput group
system
superthread
version
2.0.0-next.1
date
25.10.26

input group

an input with company inside its box: an icon, a prefix, a count or a button. the box is the field, so it draws the one focus frame.

bunx --bun shadcn@latest add @mk/input-group

example

addons sit inside the edge, before or after the text, or under it for a textarea. a button in the box is a control of its own: tab onto clear and it takes its own ring while the field drops back to 1 px.

light

clear is a control in the field: it takes its own ring, and the field stays at 1 px

@mk/

the name after the namespace

39 of 280

shown on the changelog page

dark

clear is a control in the field: it takes its own ring, and the field stays at 1 px

@mk/

the name after the namespace

39 of 280

shown on the changelog page

states

the same frame as a bare input, drawn by the box whenever its text has focus: 1 px at rest, 2 px inside on focus, in the error ink when the text is invalid. disabled screens the edge back and dims the addons with it.

light

@mk/

rest
1 px input edge

@mk/

focus
2 px house edge, inside

@mk/

typing
same edge, caret in its ink

@mk/

invalid
1 px error edge

@mk/

invalid, focus
2 px error edge, inside

@mk/

invalid, typing
same edge, caret in its ink

@mk/

disabled
flat fill, screened edge

dark

@mk/

rest
1 px input edge

@mk/

focus
2 px house edge, inside

@mk/

typing
same edge, caret in its ink

@mk/

invalid
1 px error edge

@mk/

invalid, focus
2 px error edge, inside

@mk/

invalid, typing
same edge, caret in its ink

@mk/

disabled
flat fill, screened edge

disabled edgescreened back: there, but not available now