import { PinInput as ChakraPinInput, Group } from '@chakra-ui/react'; import * as React from 'react'; export interface PinInputProps extends ChakraPinInput.RootProps { rootRef?: React.Ref; count?: number; inputProps?: React.InputHTMLAttributes; attached?: boolean; } export const PinInput = React.forwardRef( function PinInput(props, ref) { const { count = 6, inputProps, rootRef, attached, placeholder = ' ', bgColor, ...rest } = props; return ( { Array.from({ length: count }).map((_, index) => ( )) } ); }, );