Skip to main content
Glama

Storyden

by Southclaws
Mozilla Public License 2.0
229
PinInputField.tsx872 B
import { PinInputValueChangeDetails } from "@ark-ui/react"; import { Controller, ControllerProps, FieldValues } from "react-hook-form"; import { PinInput } from "../pin-input"; type Props<T extends FieldValues> = Omit<ControllerProps<T>, "render"> & { length?: number; }; export function PinInputField<T extends FieldValues>({ length, ...controllerProps }: Props<T>) { return ( <Controller<T> {...controllerProps} render={({ formState, field }) => { const defaultValue = formState.defaultValues![controllerProps.name]; function handleChange({ value }: PinInputValueChangeDetails) { field.onChange(value.join("")); } return ( <PinInput length={length} defaultValue={defaultValue} onValueChange={handleChange} /> ); }} /> ); }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Southclaws/storyden'

If you have feedback or need assistance with the MCP directory API, please join our Discord server