FieldButton

A field button can used inside a group component to add additional functionality to a field.

Examples

Disabled

In Invalid Field

Props

className
string | ((values: ButtonRenderProps & { defaultClassName: string; }) => string)—
isDisabled
boolean—
onPress
((e: PressEvent) => void)—
onPressStart
((e: PressEvent) => void)—
onPressEnd
((e: PressEvent) => void)—
onPressChange
((isPressed: boolean) => void)—
onPressUp
((e: PressEvent) => void)—
onClick
((e: MouseEvent<FocusableElement, MouseEvent>) => void)—
autoFocus
boolean—
onFocus
((e: FocusEvent<Element, Element>) => void)—
onBlur
((e: FocusEvent<Element, Element>) => void)—
onFocusChange
((isFocused: boolean) => void)—
onKeyDown
((e: KeyboardEvent) => void)—
onKeyUp
((e: KeyboardEvent) => void)—
onHoverStart
((e: HoverEvent) => void)—
onHoverEnd
((e: HoverEvent) => void)—
onHoverChange
((isHovering: boolean) => void)—
children
ReactNode | ((values: ButtonRenderProps & { defaultChildren: ReactNode; }) => ReactNode)—
style
CSSProperties | ((values: ButtonRenderProps & { defaultStyle: CSSProperties; }) => CSSProperties)—
slot
string | null—
id
string—
type
"button" | "submit" | "reset"'button'
preventFocusOnPress
boolean—
intent
Intent—
isDestructive
boolean—
slotLeft
Element—
slotRight
Element—
form
string—
formAction
string—
formEncType
string—
formMethod
string—
formNoValidate
boolean—
formTarget
string—
name
string—
value
string—
isPending
boolean—
ref
ForwardedRef<HTMLButtonElement>—