Button.Input

View Source

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

Props

children(inputProps: InputProps) => ReactNode | ReactElement

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

onClose() => void

Callback when the input reverts back to a button.

onOpen() => void

Callback when button is pressed to reveal the input.

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

Size of internal Button and child Input.