Input Button
A button that shows an input when clicked.
Installation
Examples
Newsletter Form with Loading State
Props
InputButton
Prop | Type | Default |
---|---|---|
transition? | Transition | { type: 'spring', stiffness: 300, damping: 20 } |
showInput? | boolean | false |
setShowInput? | React.Dispatch<React.SetStateAction<boolean>> | - |
id? | string | - |
SubmitButton
Prop | Type | Default |
---|---|---|
icon? | React.ElementType | ArrowRight |
Credits
- Credits to Adam Wathan for the inspiration