UNPKG

@ark-ui/solid

Version:

A collection of unstyled, accessible UI components for Solid, utilizing state machines for seamless interaction.

15 lines (12 loc) 437 B
import { Context } from 'solid-js'; export { mergeProps } from '@zag-js/core'; interface CreateContextOptions<T> { strict?: boolean; hookName?: string; providerName?: string; errorMessage?: string; defaultValue?: T; } type CreateContextReturn<T> = [Context<T>['Provider'], () => T, Context<T>]; declare function createContext<T>(options?: CreateContextOptions<T>): CreateContextReturn<T>; export { createContext };