CSS: text-area
.instui-text-area — Egy stilizált, átméretezhető natív <textarea> a szövegbevitellel megegyező állapotokkal és méretekkel.
Forrás: text-area.ts
Használat
css
@import "@pantoken/components/components.css";
@import "@pantoken/components/text-area.css";Példák
html
<textarea class="instui-text-area" placeholder="Write a comment…"></textarea>Módosítók
| Módosító | Leírás |
|---|---|
.-disabled | Letiltott állapot. |
.-invalid | Érvénytelen (hiba) állapot. |
.-readonly | Csak olvasható állapot. |
.-size-large | Nagy. Hosszú forma alias a -size-lg. |
.-size-lg | Nagy. |
.-size-sm | Kicsi. |
.-size-small | Kicsi. Hosszú forma alias a -size-sm. |
.-success | Sikeres (érvényes) állapot. |
Pszeudoelemek
| Pszeudoelem | Leírás |
|---|---|
::placeholder | A helyőrző szöveg, egy tomított szín, amely a lebegés során eltolódik. |
Állapotok
| Állapot | Leírás |
|---|---|
:disabled | — |
Felhasznált tokenek
| Token | Típus | Érték |
|---|---|---|
--instui-component-text-area-background-color | <color> | light-dark(#ffffff, #171B21)LightDark |
--instui-component-text-area-background-disabled-color | <color> | light-dark(#E8EAEC, #334450)LightDark |
--instui-component-text-area-background-hover-color | <color> | light-dark(#ffffff, #171B21)LightDark |
--instui-component-text-area-background-readonly-color | <color> | light-dark(#C7CACD, #6A7883)LightDark |
--instui-component-text-area-border-color | <color> | light-dark(#7E8792, #5F6E7A)LightDark |
--instui-component-text-area-border-disabled-color | <color> | light-dark(#C7CACD, #4A5B68)LightDark |
--instui-component-text-area-border-hover-color | <color> | light-dark(#334450, #7E8792)LightDark |
--instui-component-text-area-border-radius | <length> | 0.75rem |
--instui-component-text-area-border-readonly-color | <color> | #8D959F |
--instui-component-text-area-border-width | <length> | 0.0625rem |
--instui-component-text-area-error-border-color | <color> | #CF1F24 |
--instui-component-text-area-font-family | [ <font-family-name> | <generic-font-family> ]# | Atkinson Hyperlegible Next, "Helvetica Neue", Helvetica, Arial, sans-serif |
--instui-component-text-area-font-size-lg | <length> | 1.25rem |
--instui-component-text-area-font-size-md | <length> | 1rem |
--instui-component-text-area-font-size-sm | <length> | 0.875rem |
--instui-component-text-area-font-weight | <integer> | 400 |
--instui-component-text-area-padding | <length> | 0.75rem |
--instui-component-text-area-placeholder-color | <color> | light-dark(#5F6E7A, #7E8792)LightDark |
--instui-component-text-area-placeholder-hover-color | <color> | light-dark(#334450, #9EA6AD)LightDark |
--instui-component-text-area-success-border-color | <color> | light-dark(#037D37, #3EA75B)LightDark |
--instui-component-text-area-text-color | <color> | light-dark(#273540, #ffffff)LightDark |
--instui-component-text-area-text-disabled-color | <color> | light-dark(#8D959F, #9EA6AD)LightDark |
--instui-component-text-area-text-readonly-color | <color> | light-dark(#273540, #ffffff)LightDark |
--instui-focus-outline-color-danger | <color> | invert | — |
--instui-focus-outline-color-success | <color> | invert | — |
Kapcsolódó
- text-input — Az egysoros megfelelője ugyanazokkal az állapotokkal és méretekkel.