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

Function usePinInputContext

components/base/input/pin-input.tsx:26–34  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

24});
25
26export const usePinInputContext = () => {
27 const context = useContext(PinInputContext);
28
29 if (!context) {
30 throw new Error("The 'usePinInputContext' hook must be used within a '<PinInput />'");
31 }
32
33 return context;
34};
35
36interface RootProps extends ComponentPropsWithRef<"div"> {
37 size?: PinInputSize;

Callers 4

GroupFunction · 0.85
SlotFunction · 0.85
LabelFunction · 0.85
DescriptionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected