Skip to content

ZInput

Text input field with validation support

Example

Import

tsx
import { ZInput } from "zurto-ui";

Usage

tsx
import { ZInput } from "zurto-ui";

function Example() {
  return (
    <>
      <ZInput placeholder="Enter your name..." />
      <ZInput placeholder="With error" error />
    </>
  );
}

Props

PropTypeDefaultDescription
placeholderstring-Placeholder text
valuestring-Controlled value
onChange(e) => void-Change handler
errorbooleanfalseShow error state
disabledbooleanfalseDisable input
leftIconReactNode-Icon on left
rightIconReactNode-Icon on right

Accessibility

  • ✅ Keyboard navigation support
  • ✅ ARIA attributes included
  • ✅ Screen reader friendly
  • ✅ Focus management

Released under the MIT License.