@coinmeca/ui
Version:
This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app).
20 lines • 877 B
JSX
"use client";
import Style, { Dot } from "./Passcode.styled";
export default function Passcode(props) {
const scale = props?.scale || 1;
const size = props?.scale || 1;
const gap = props?.gap || 2;
const index = props?.index;
const length = props?.length;
const color = props?.color || "black";
const stroke = props?.stroke || "1px";
const padding = props?.padding || 2;
const effect = props?.effect || false;
return (<Style $width={props?.width} $scale={scale} $gap={gap} $padding={padding} $color={color} $error={props?.error} style={props?.style}>
{length &&
[...Array(length)].map((_, i) => (<Dot key={i} $active={index > i} $size={size} $stroke={stroke} $effect={effect}>
{effect && <div />}
</Dot>))}
</Style>);
}
//# sourceMappingURL=Passcode.jsx.map