Input
A component that renders a form input field using Medusa's design system.
In this guide, you'll learn how to use the Input component.
Was this example helpful?
Usage#
API Reference#
This component is based on the input
element and supports all of its props
Prop | Type | Default |
---|---|---|
size | "small" | "base" | "base" |
Was this helpful?
Examples#
Password#
Was this example helpful?
Search#
Was this example helpful?
Disabled#
Was this example helpful?
Small Size#
Was this example helpful?
Controlled#
Was this example helpful?
Error State#
You can leverage the native aria-invalid
property to show an error state on your input:
Was this guide helpful?