Skip to main content
Glama
deleonio
by deleonio
README.md798 B
# KoliBri - React Hook Form Adapter This package provides simple facade components to combine [React Hook Form](https://react-hook-form.com/) with the KoliBri React components. Validation messages from React Hook Form are forwarded to the KoliBri inputs automatically. ## Installation ```bash npm i @public-ui/react-hook-form-adapter ``` ## Usage ```tsx import { useForm } from 'react-hook-form'; import { KolInputTextController } from '@public-ui/react-hook-form-adapter'; const MyForm = () => { const { control, handleSubmit } = useForm({ defaultValues: { firstName: '' }, }); return ( <form onSubmit={handleSubmit(console.log)}> <KolInputTextController name="firstName" control={control} rules={{ required: 'Please enter your name' }} _label="First name" /> </form> ); }; ```

Latest Blog Posts

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/deleonio/public-ui-kolibri'

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