@vela-ui/react
Version:
Vela UI React components
65 lines (62 loc) • 2.07 kB
TypeScript
import * as react_jsx_runtime from 'react/jsx-runtime';
import * as tailwind_variants from 'tailwind-variants';
import { VariantProps } from 'tailwind-variants';
import { Input as Input$1 } from 'react-aria-components';
declare const inputVariants: tailwind_variants.TVReturnType<{
size: {
xs: string;
sm: string;
md: string;
lg: string;
xl: string;
};
hasStartContent: {
true: string;
};
hasEndContent: {
true: string;
};
isFocused: {
true: string;
};
}, undefined, "file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input flex w-full min-w-0 rounded-md border bg-transparent py-1 shadow-xs transition-[color,box-shadow] file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50", {
isFocusVisible: {
true: string;
};
isInvalid: {
true: string;
};
}, undefined, tailwind_variants.TVReturnType<{
isFocusVisible: {
true: string;
};
isInvalid: {
true: string;
};
}, undefined, "outline-hidden", {
isFocusVisible: {
true: string;
};
isInvalid: {
true: string;
};
}, undefined, tailwind_variants.TVReturnType<{
isFocusVisible: {
true: string;
};
isInvalid: {
true: string;
};
}, undefined, "outline-hidden", unknown, unknown, undefined>>>;
interface InputProps extends Omit<React.ComponentProps<typeof Input$1>, "color" | "size">, VariantProps<typeof inputVariants> {
/**
* Element to be rendered in the left side of the input.
*/
startContent?: React.ReactNode;
/**
* Element to be rendered in the right side of the input.
*/
endContent?: React.ReactNode;
}
declare function Input({ className, size, startContent, endContent, ...props }: InputProps): react_jsx_runtime.JSX.Element;
export { Input, type InputProps };