More components in Pro
Galleries, cards and interactive pieces for pages that need more than the basics.
value | undefined | Controlled value; leave undefined for uncontrolled usage. | |
defaultValue | "" | Initial value when the input is uncontrolled. | |
onChange | (value) => void | Called with the new value on every keystroke. | |
onSubmit | (value) => void | Called when the button is pressed or Enter is hit. | |
placeholder | "Enter your email" | Placeholder text rendered along the curve when empty. | |
buttonText | "Get Started" | Label of the curved submit button. | |
type | "email" | Semantic input type; email/number map to the matching mobile keyboard. | |
name | undefined | Name attribute forwarded to the underlying input. | |
ariaLabel | undefined | Accessible label; falls back to the placeholder. | |
theme | "dark" | "light" | "dark" | Color preset; any explicit color prop overrides its theme value. |
width | number | string | 450 | Width of the input bar (pixels or any CSS width value, e.g. "100%"). |
bend | 28 | How many pixels the center of the bar arches above its ends; negative bends downward, 0 is flat. | |
height | 64 | Thickness of the input bar in pixels. | |
cornerRadius | 18 | Corner rounding of the bar; the button rounds proportionally. | |
borderWidth | 1.5 | Outline stroke width in pixels. | |
fontSize | 16 | Font size of the curved text and button label. | |
backgroundColor | undefined | Fill color of the input bar; overrides the theme. | |
textColor | undefined | Color of the typed text and caret; overrides the theme. | |
placeholderColor | undefined | Color of the placeholder text; overrides the theme. | |
borderColor | undefined | Color of the outline stroke; overrides the theme. | |
buttonColor | undefined | Fill of the submit button, the focus ring and the default icon chip; overrides the theme. | |
buttonTextColor | undefined | Color of the button label; overrides the theme. | |
iconColor | undefined | Fill of the icon chip; defaults to the button color. | |
shadowSize | "none" | "sm" | "md" | "lg" | "md" | Size of the soft drop shadow under the bar. |
shadowColor | undefined | Tint of the drop shadow; overrides the theme. | |
showButton | Render the curved submit button. | ||
showIcon | Render the leading icon chip. | ||
icon | React.ReactNode | undefined | Custom SVG content for the icon, centered at the origin; replaces the default envelope chip. |
"" | Additional CSS classes for the wrapper form. | ||
| React.CSSProperties | undefined | Inline styles for the wrapper form. |
valuestringControlled value; leave undefined for uncontrolled usage.
undefineddefaultValuestringInitial value when the input is uncontrolled.
""onChange(value) => voidCalled with the new value on every keystroke.
onSubmit(value) => voidCalled when the button is pressed or Enter is hit.
placeholderstringPlaceholder text rendered along the curve when empty.
"Enter your email"buttonTextstringLabel of the curved submit button.
"Get Started"typestringSemantic input type; email/number map to the matching mobile keyboard.
"email"namestringName attribute forwarded to the underlying input.
undefinedariaLabelstringAccessible label; falls back to the placeholder.
undefinedtheme"dark" | "light"Color preset; any explicit color prop overrides its theme value.
"dark"widthnumber | stringWidth of the input bar (pixels or any CSS width value, e.g. "100%").
450bendnumberHow many pixels the center of the bar arches above its ends; negative bends downward, 0 is flat.
28heightnumberThickness of the input bar in pixels.
64cornerRadiusnumberCorner rounding of the bar; the button rounds proportionally.
18borderWidthnumberOutline stroke width in pixels.
1.5fontSizenumberFont size of the curved text and button label.
16backgroundColorstringFill color of the input bar; overrides the theme.
undefinedtextColorstringColor of the typed text and caret; overrides the theme.
undefinedplaceholderColorstringColor of the placeholder text; overrides the theme.
undefinedborderColorstringColor of the outline stroke; overrides the theme.
undefinedbuttonColorstringFill of the submit button, the focus ring and the default icon chip; overrides the theme.
undefinedbuttonTextColorstringColor of the button label; overrides the theme.
undefinediconColorstringFill of the icon chip; defaults to the button color.
undefinedshadowSize"none" | "sm" | "md" | "lg"Size of the soft drop shadow under the bar.
"md"shadowColorstringTint of the drop shadow; overrides the theme.
undefinedshowButtonbooleanRender the curved submit button.
showIconbooleanRender the leading icon chip.
iconReact.ReactNodeCustom SVG content for the icon, centered at the origin; replaces the default envelope chip.
undefinedAdditional CSS classes for the wrapper form.
""styleReact.CSSPropertiesInline styles for the wrapper form.
undefined


