Arc Input
A text field bent into an arch: the bar, the typed text, the caret and the submit button all follow the same curve.
pixikit.com/docs/components/arc-input
Customize
Theme
Width450px
Bend28px
Height64px
Corner radius18px
Border width1.5px
Font size16px
Background color
Text color
Border color
Button color
Button text color
Shadow size
Show button
Show icon
Props
30| Name | Type | Default | Description |
|---|---|---|---|
value | string | None | Controlled value; leave undefined for uncontrolled usage. |
defaultValue | string | "" | Initial value when the input is uncontrolled. |
onChange | (value: string) => void | None | Called with the new value on every keystroke. |
onSubmit | (value: string) => void | None | Called when the button is pressed or Enter is hit. |
placeholder | string | "Enter your email" | Placeholder text rendered along the curve when empty. |
buttonText | string | "Get Started" | Label of the curved submit button. |
type | string | "email" | Semantic input type; email and number bring up the matching mobile keyboard. |
name | string | None | Name attribute forwarded to the underlying input. |
ariaLabel | string | None | 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 | number | 28 | How many pixels the center of the bar arches above its ends; negative bends downward, 0 is flat. |
height | number | 64 | Thickness of the input bar in pixels. |
cornerRadius | number | 18 | Corner rounding of the bar; the button rounds proportionally. |
borderWidth | number | 1.5 | Outline stroke width in pixels. |
fontSize | number | 16 | Font size of the curved text and button label. |
backgroundColor | string | None | Fill color of the input bar; overrides the theme. |
textColor | string | None | Color of the typed text and caret; overrides the theme. |
placeholderColor | string | None | Color of the placeholder text; overrides the theme. |
borderColor | string | None | Color of the outline stroke; overrides the theme. |
buttonColor | string | None | Fill of the submit button, the focus ring and the default icon chip; overrides the theme. |
buttonTextColor | string | None | Color of the button label; overrides the theme. |
iconColor | string | None | 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 | string | None | Tint of the drop shadow; overrides the theme. |
showButton | boolean | true | Render the curved submit button. |
showIcon | boolean | true | Render the leading icon chip. |
icon | ReactNode | None | Custom SVG content for the icon, centered at the origin; replaces the default envelope chip. |
className | string | "" | |
style | CSSProperties | None |