Skip to Content
šŸŽ‰Introducing Pumki UI

Input Button

A button that flips between two states with an accompanying animation.

Pumki UIPumki UI

Installation

Usage


1import { InputButton } from '@/components/pumki-ui/buttons/input';

1<InputButton>
2 <Buttons>
3 <Button>Button</Button>
4 <SubmitButton>Submit</SubmitButton>
5 </Buttons>
6 <Input />
7</InputButton>

Props

InputButton Props

PropTypeDefaultDescription
id?string-Input/button id
setShowInput?React.Dispatch<React.SetStateAction<boolean>>-Set input visibility
showInput?booleanfalseShow input field
transition?Transition{ type: 'spring', stiffness: 300, damping: 20 }Animation config

SubmitButton Props

PropTypeDefaultDescription
icon?React.ElementTypeArrowRightIcon for submit button
Last updated on