UNPKG

@spark-ui/components

Version:

Spark (Leboncoin design system) components.

18 lines (15 loc) 620 B
import * as react_jsx_runtime from 'react/jsx-runtime'; import { ComponentPropsWithoutRef, Ref } from 'react'; type InputPrimitiveProps = ComponentPropsWithoutRef<'input'>; interface InputProps extends InputPrimitiveProps { asChild?: boolean; onValueChange?: (value: string) => void; ref?: Ref<HTMLInputElement>; } declare const Input: { ({ className, asChild, onValueChange, onChange, onKeyDown, disabled: disabledProp, readOnly: readOnlyProp, ref, ...others }: InputProps): react_jsx_runtime.JSX.Element; displayName: string; } & { id: string; }; export { type InputProps as I, Input as a };