Components
Textarea
A multi-line text input with hard borders, offset shadow, and strong focus states matching the neo-brutalism style.
Preview
Usage
Import
import { NbTextarea } from '@ng-brutalism/ui';Template
<textarea nbTextarea placeholder="Write something..." class="w-75"></textarea>Sizes
Disabled
With Label
Customization
Override these CSS variables on :root, a wrapper, or the component element. More local values win, so per-instance styling can sit directly on the element.
| Token | Default | Used for |
|---|---|---|
| --nb-textarea-bg | var(--nb-input-bg, var(--nb-field-bg)) | Textarea background |
| --nb-textarea-fg | var(--nb-foreground) | Textarea text color |
| --nb-textarea-border | var(--nb-border) | Textarea border and focus ring color |
| --nb-textarea-radius | var(--nb-radius) | Textarea corner radius |
| --nb-textarea-shadow | var(--nb-shadow-offset-x) var(--nb-shadow-offset-y) 0 var(--nb-shadow) | Textarea box shadow |
| --nb-input-bg | var(--nb-field-bg) | Shared field background consumed by the textarea default |
| --nb-border | #000000 | Border color and focus ring color |
| --nb-shadow | #000000 | Offset shadow color |
| --nb-radius | 0rem | Corner radius through the rounded-nb utility |
| --nb-shadow-offset-x | 4px | Horizontal shadow and press offset |
| --nb-shadow-offset-y | 4px | Vertical shadow and press offset |
| --nb-foreground | #000000 | Default foreground text color |
| --nb-background | #ffffff | Default surface background color |
API
| Input | Type | Default |
|---|---|---|
| size | 'default' | 'sm' | 'lg' | 'default' |