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