UNPKG

@stratakit/react

Version:

A React component library for StrataKit

25 lines (24 loc) 1.48 kB
import * as React from "react"; import type { Icon as IuiIcon, LabeledTextarea as IuiLabeledTextarea } from "@itwin/itwinui-react"; import type { PolymorphicForwardRefComponent } from "./~utils.js"; type IuiLabeledTextareaProps = React.ComponentProps<typeof IuiLabeledTextarea>; type IuiIconProps = React.ComponentProps<typeof IuiIcon>; interface IconProps extends Pick<IuiIconProps, "size" | "fill" | "padded"> { /** PARTIALLY IMPLEMENTED. Only supports `large` and `medium` size. Other values are mapped to `medium`. */ size?: IuiIconProps["size"]; /** NOT IMPLEMENTED. */ fill?: IuiIconProps["fill"]; /** NOT IMPLEMENTED. */ padded?: IuiIconProps["padded"]; } interface LabeledTextareaProps extends Pick<IuiLabeledTextareaProps, "label" | "message" | "status" | "wrapperProps" | "labelProps" | "messageContentProps" | "svgIcon" | "displayStyle"> { /** PARTIALLY IMPLEMENTED. Missing status icon and color mismatch for message and textarea. Doesn't change svgIcon color. */ status?: IuiLabeledTextareaProps["status"]; /** PARTIALLY IMPLEMENTED. Only supports one large icon size and svg props. */ iconProps?: IconProps & Omit<React.ComponentProps<"svg">, "fill">; /** NOT IMPLEMENTED. */ messageContentProps?: IuiLabeledTextareaProps["messageContentProps"]; } /** @see https://itwinui.bentley.com/docs/textarea */ export declare const LabeledTextarea: PolymorphicForwardRefComponent<"textarea", LabeledTextareaProps>; export {};