Components

Input

Displays a form input field with hard borders, offset shadow, and strong focus states in the neo-brutalism style.

3Sizes
FORMNative
Types
Source ↗Open Docs

Preview

Usage

Import
import { NbInput } from '@ng-brutalism/ui';
Template
<input nbInput placeholder="Email" class="w-75" />

Sizes

Disabled

With Label

With Button

File

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-input-bg var(--nb-field-bg) Input background
--nb-input-fg var(--nb-foreground) Input text color
--nb-input-border var(--nb-border) Input border and focus ring color
--nb-input-radius var(--nb-radius) Input corner radius
--nb-input-shadow var(--nb-shadow-offset-x) var(--nb-shadow-offset-y) 0 var(--nb-shadow) Input box shadow
--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'