v14.2.0

Playroom

Github

Button.Input

View Source

Transforms a button into an input. Composes and forwards props to Button.

Add Person
Copy
Edit

Link 1

Link 2

Link 3

Copy
Edit

Props

children(inputProps: InputProps) => React.ReactNode | ReactReactElement

Clones immediate child with input specific props. Use a function to access props and pass them yourself.

size'xs' | 'sm' | 'md' | 'lg'

Size of internal Button and child Input.

onClose() => void

Callback when the input reverts back to a button.

onOpen() => void

Callback when button is pressed to reveal the input.

  • Props
PreviousButtonNextCalendar