UNPKG

@spark-ui/components

Version:

Spark (Leboncoin design system) components.

48 lines (41 loc) 1.66 kB
import * as react_jsx_runtime from 'react/jsx-runtime'; import { I as InputGroupProps } from '../InputGroup-aoaZxCLk.js'; import { I as InputLeadingIconProps, a as InputTrailingIconProps } from '../InputTrailingIcon-ZZx8PoJy.js'; import { ComponentPropsWithRef, PropsWithChildren } from 'react'; import 'class-variance-authority/types'; import 'class-variance-authority'; import '../icon/index.js'; 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; }; export { Textarea, TextareaGroup, type TextareaGroupProps, type TextareaLeadingIconProps, type TextareaProps, type TextareaTrailingIconProps };