Input

Playground

Properties

Size
Leading icon
Read only
Error
Disabled

Content

Placeholder

Usage

Associate a label with the input or set aria-label. Use a separate Field for status messages and character counts. Link error messages to the input with aria-describedby.

'use client';
import { Input } from '@mbsw/ui';

export default function Example() {
  return (
    <Input
      clearLabel={"Clear input"}
      aria-label={"Text"}
      placeholder={"Enter text."}
    />
  );
}

The Playground Code tab includes the full example with your current settings. See Installation for the CSS imports.

Composition