MCPcopy
hub / github.com/untitleduico/react / Group

Function Group

components/base/input/pin-input.tsx:67–84  ·  view source on GitHub ↗
({ inputClassName, containerClassName, width, maxLength = 4, ...props }: GroupProps)

Source from the content-addressed store, hash-verified

65};
66
67const Group = ({ inputClassName, containerClassName, width, maxLength = 4, ...props }: GroupProps) => {
68 const { id, size, disabled } = usePinInputContext();
69
70 return (
71 <OTPInput
72 {...props}
73 size={width}
74 maxLength={maxLength}
75 disabled={disabled}
76 id={"pin-input-" + id}
77 aria-label="Enter your pin"
78 aria-labelledby={"pin-input-label-" + id}
79 aria-describedby={"pin-input-description-" + id}
80 containerClassName={cx("flex flex-row", styles[size].group, containerClassName)}
81 className={cx("disabled:cursor-not-allowed", inputClassName)}
82 />
83 );
84};
85Group.displayName = "Group";
86
87const Slot = ({ index, className, ...props }: ComponentPropsWithRef<"div"> & { index: number }) => {

Callers

nothing calls this directly

Calls 1

usePinInputContextFunction · 0.85

Tested by

no test coverage detected