CSS: input-group
.instui-input-group — A facade around a text input with leading and trailing icon slots.
Source: input-group.ts
Usage
css
@import "@pantoken/components/components.css";
@import "@pantoken/components/input-group.css";Examples
html
<span class="instui-input-group">
<span class="before">@</span>
<input type="text" placeholder="username">
</span>@
Modifiers
| Modifier | Description |
|---|---|
.-disabled | Disabled state. |
.-invalid | Invalid (error) state. |
.-readonly | Read-only state. |
.-should-not-wrap | Keep the group on one line (no wrapping). |
.-size-large | Large. Long-form alias of -size-lg. |
.-size-lg | Large. |
.-size-sm | Small. |
.-size-small | Small. Long-form alias of -size-sm. |
.-success | Success (valid) state. |
Pseudo-elements
| Pseudo-element | Description |
|---|---|
::placeholder | The placeholder text of the inner input, in a muted color. |
States
| State | Description |
|---|---|
:disabled | — |
Tokens consumed
| Token | Type | Value |
|---|---|---|
--instui-component-text-input-background-color | <color> | light-dark(#ffffff, #171B21)LightDark |
--instui-component-text-input-background-disabled-color | <color> | light-dark(#E8EAEC, #334450)LightDark |
--instui-component-text-input-background-hover-color | <color> | light-dark(#ffffff, #171B21)LightDark |
--instui-component-text-input-background-readonly-color | <color> | light-dark(#C7CACD, #6A7883)LightDark |
--instui-component-text-input-border-color | <color> | light-dark(#7E8792, #5F6E7A)LightDark |
--instui-component-text-input-border-disabled-color | <color> | light-dark(#C7CACD, #4A5B68)LightDark |
--instui-component-text-input-border-hover-color | <color> | light-dark(#334450, #7E8792)LightDark |
--instui-component-text-input-border-radius | <length> | 0.75rem |
--instui-component-text-input-border-readonly-color | <color> | #8D959F |
--instui-component-text-input-border-width | <length> | 0.0625rem |
--instui-component-text-input-error-border-color | <color> | light-dark(#CF1F24, #F56050)LightDark |
--instui-component-text-input-font-family | [ <font-family-name> | <generic-font-family> ]# | Atkinson Hyperlegible Next, "Helvetica Neue", Helvetica, Arial, sans-serif |
--instui-component-text-input-font-size-lg | <length> | 1.25rem |
--instui-component-text-input-font-size-md | <length> | 1rem |
--instui-component-text-input-font-size-sm | <length> | 0.875rem |
--instui-component-text-input-gap-content | <length> | 0.75rem |
--instui-component-text-input-height-lg | <length> | 3rem |
--instui-component-text-input-height-md | <length> | 2.5rem |
--instui-component-text-input-height-sm | <length> | 2rem |
--instui-component-text-input-padding-horizontal-lg | <length> | 0.75rem |
--instui-component-text-input-padding-horizontal-md | <length> | 0.75rem |
--instui-component-text-input-padding-horizontal-sm | <length> | 0.5rem |
--instui-component-text-input-placeholder-color | <color> | light-dark(#5F6E7A, #7E8792)LightDark |
--instui-component-text-input-success-border-color | <color> | light-dark(#037D37, #3EA75B)LightDark |
--instui-component-text-input-text-color | <color> | light-dark(#273540, #ffffff)LightDark |
--instui-component-text-input-text-disabled-color | <color> | light-dark(#8D959F, #9EA6AD)LightDark |
--instui-component-text-input-text-readonly-color | <color> | light-dark(#273540, #ffffff)LightDark |
--instui-focus-outline-color | <color> | invert | — |
--instui-focus-outline-color-danger | <color> | invert | — |
--instui-focus-outline-color-success | <color> | invert | — |
--instui-focus-outline-offset | <length> | — |
--instui-focus-outline-radius | <length> | — |
--instui-focus-outline-style | auto | none | hidden | dotted | dashed | solid | double | groove | ridge | inset | outset | — |
--instui-focus-outline-width | <length> | — |
Related
- text-input — Wraps a text input, adding leading and trailing icon slots.