Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@public-ui/react-hook-form-adapter

Package Overview
Dependencies
Maintainers
2
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@public-ui/react-hook-form-adapter

React Hook Form adapter for KoliBri - The accessible HTML-Standard.

latest
Source
npmnpm
Version
3.0.6
Version published
Maintainers
2
Created
Source

KoliBri - React Hook Form Adapter

This package provides simple facade components to combine React Hook Form with the KoliBri React components. Validation messages from React Hook Form are forwarded to the KoliBri inputs automatically.

Installation

npm i @public-ui/react-hook-form-adapter

Usage

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>
        );
};

Keywords

accessibility

FAQs

Package last updated on 16 Sep 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts