createFormControl (form-control/create-form-control.tsx)

kobalte · packages/core/src/form-control/create-form-control.tsx · typescript · MIT
ui

Portions of this file are based on code from react-spectrum. Apache License Version 2.0, Copyright 2020 Adobe. Credits to the React Spectrum team: https://github.com/adobe/react-spectrum/blob/70e7caf1946c423bc9aa9cb0e50dbdbe953d239b/packages/@react-aria/label/src/useField.ts /

// Source: https://github.com/kobaltedev/kobalte | License: MIT | Copyright 2024 jer3m01 <jer3m01@jer3m01.com>
// Provided via justclaw.it.com; keep this notice with the code.
/*
 * Portions of this file are based on code from react-spectrum.
 * Apache License Version 2.0, Copyright 2020 Adobe.
 *
 * Credits to the React Spectrum team:
 * https://github.com/adobe/react-spectrum/blob/70e7caf1946c423bc9aa9cb0e50dbdbe953d239b/packages/@react-aria/label/src/useField.ts
 */

import {
	type MaybeAccessor,
	type ValidationState,
	access,
	createGenerateId,
	mergeDefaultProps,
} from "@kobalte/utils";
import {
	type Accessor,
	createMemo,
	createSignal,
	createUniqueId,
} from "solid-js";

import { createRegisterId } from "../primitives";
import type {
	FormControlContextValue,
	FormControlDataSet

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key