Skip to content
PixiKit

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
NameTypeDefaultDescription
valuestringNoneControlled value; leave undefined for uncontrolled usage.
defaultValuestring""Initial value when the input is uncontrolled.
onChange(value: string) => voidNoneCalled with the new value on every keystroke.
onSubmit(value: string) => voidNoneCalled when the button is pressed or Enter is hit.
placeholderstring"Enter your email"Placeholder text rendered along the curve when empty.
buttonTextstring"Get Started"Label of the curved submit button.
typestring"email"Semantic input type; email and number bring up the matching mobile keyboard.
namestringNoneName attribute forwarded to the underlying input.
ariaLabelstringNoneAccessible label; falls back to the placeholder.
theme"dark" | "light""dark"Color preset; any explicit color prop overrides its theme value.
widthnumber | string450Width of the input bar (pixels or any CSS width value, e.g. "100%").
bendnumber28How many pixels the center of the bar arches above its ends; negative bends downward, 0 is flat.
heightnumber64Thickness of the input bar in pixels.
cornerRadiusnumber18Corner rounding of the bar; the button rounds proportionally.
borderWidthnumber1.5Outline stroke width in pixels.
fontSizenumber16Font size of the curved text and button label.
backgroundColorstringNoneFill color of the input bar; overrides the theme.
textColorstringNoneColor of the typed text and caret; overrides the theme.
placeholderColorstringNoneColor of the placeholder text; overrides the theme.
borderColorstringNoneColor of the outline stroke; overrides the theme.
buttonColorstringNoneFill of the submit button, the focus ring and the default icon chip; overrides the theme.
buttonTextColorstringNoneColor of the button label; overrides the theme.
iconColorstringNoneFill of the icon chip; defaults to the button color.
shadowSize"none" | "sm" | "md" | "lg""md"Size of the soft drop shadow under the bar.
shadowColorstringNoneTint of the drop shadow; overrides the theme.
showButtonbooleantrueRender the curved submit button.
showIconbooleantrueRender the leading icon chip.
iconReactNodeNoneCustom SVG content for the icon, centered at the origin; replaces the default envelope chip.
classNamestring""
styleCSSPropertiesNone

More forms components in Pro

View all

Related