UNPKG

@spark-ui/components

Version:

Spark (Leboncoin design system) components.

59 lines (51 loc) 2.07 kB
import * as react_jsx_runtime from 'react/jsx-runtime'; import { ComponentPropsWithoutRef, Ref, ComponentPropsWithRef, PropsWithChildren } from 'react'; import { I as InputGroupProps } from '../InputGroup-aoaZxCLk.mjs'; import { I as InputLeadingIconProps, a as InputTrailingIconProps } from '../InputTrailingIcon-BBp7sE6D.mjs'; import 'class-variance-authority/types'; import 'class-variance-authority'; import '../icon/index.mjs'; interface TextareaClearButtonProps extends ComponentPropsWithoutRef<'button'> { 'aria-label': string; ref?: Ref<HTMLButtonElement>; } declare const TextareaClearButton: { (props: TextareaClearButtonProps): react_jsx_runtime.JSX.Element; id: string; displayName: string; }; type TextareaGroupProps = Omit<InputGroupProps, 'onClear'>; declare const TextareaGroup$1: { (props: InputGroupProps): react_jsx_runtime.JSX.Element; displayName: string; }; type TextareaLeadingIconProps = InputLeadingIconProps; declare const TextareaLeadingIcon: { (props: InputLeadingIconProps): react_jsx_runtime.JSX.Element; id: string; displayName: string; }; type TextareaTrailingIconProps = InputTrailingIconProps; declare const TextareaTrailingIcon: { (props: InputTrailingIconProps): react_jsx_runtime.JSX.Element; id: string; displayName: string; }; interface TextareaProps extends ComponentPropsWithRef<'textarea'> { /** * If `false`, the textarea won't be resizable. */ isResizable?: boolean; } declare const Textarea: { ({ className, disabled, rows, isResizable, ref, ...others }: PropsWithChildren<TextareaProps>): react_jsx_runtime.JSX.Element; displayName: string; } & { id: string; }; declare const TextareaGroup: typeof TextareaGroup$1 & { LeadingIcon: typeof TextareaLeadingIcon; TrailingIcon: typeof TextareaTrailingIcon; ClearButton: typeof TextareaClearButton; }; export { Textarea, type TextareaClearButtonProps, TextareaGroup, type TextareaGroupProps, type TextareaLeadingIconProps, type TextareaProps, type TextareaTrailingIconProps };