UNPKG

@workday/canvas-kit-preview-react

Version:

Canvas Kit Preview is made up of components that have the full design and a11y review, are part of the DS ecosystem and are approved for use in product. The API's could be subject to change, but not without strong communication and migration strategies.

67 lines 4.11 kB
import React from 'react'; import { ExtractProps } from '@workday/canvas-kit-react/common'; import { FormField } from '@workday/canvas-kit-react/form-field'; /** * @deprecated ⚠️ `TextAreaProps` in Preview has been deprecated and will be removed in a future major version. Please use [`FormField`](https://workday.github.io/canvas-kit/?path=/story/preview-inputs-form-field--basic) in Preview instead. */ export interface TextAreaProps extends ExtractProps<typeof FormField, never> { /** * Children of the Text Input. Should contain a `<TextArea.Field>`, a `<TextArea.Label>` and an optional `<TextArea.Hint>` */ children: React.ReactNode; } /** * @stencil formFieldStencil * @deprecated ⚠️ `TextArea` in Preview has been deprecated and will be removed in a future major version. Please use [`FormField` in Preview](https://workday.github.io/canvas-kit/?path=/story/preview-inputs-form-field--basic) instead. */ export declare const TextArea: import("@workday/canvas-kit-react/common").ElementComponentM<"div", TextAreaProps & Partial<{ error: "error" | "alert" | undefined; id: string; isRequired: boolean; orientation: "horizontal" | "vertical" | "horizontalEnd" | "horizontalStart"; }> & {} & {}, { state: { id: string; error: "error" | "alert" | undefined; isRequired: boolean; orientation: "horizontal" | "vertical" | "horizontalEnd" | "horizontalStart"; }; events: {}; }> & { Field: import("@workday/canvas-kit-react/common").ElementComponentM<"textarea", import("@workday/canvas-kit-react/layout").BackgroundStyleProps & import("@workday/canvas-kit-react/layout/lib/utils/border/color").BorderColorStyleProps & import("@workday/canvas-kit-react/layout/lib/utils/border/lineStyle").BorderLineStyleProps & import("@workday/canvas-kit-react/layout/lib/utils/border/radius").BorderRadiusStyleProps & import("@workday/canvas-kit-react/layout/lib/utils/border/shorthand").BorderShorthandStyleProps & import("@workday/canvas-kit-react/layout/lib/utils/border/width").BorderWidthStyleProps & import("@workday/canvas-kit-react/layout").ColorStyleProps & import("@workday/canvas-kit-react/layout").DepthStyleProps & import("@workday/canvas-kit-react/layout").FlexItemStyleProps & import("@workday/canvas-kit-react/layout").GridItemStyleProps & import("@workday/canvas-kit-react/layout").LayoutStyleProps & import("@workday/canvas-kit-react/layout").OtherStyleProps & import("@workday/canvas-kit-react/layout").PositionStyleProps & import("@workday/canvas-kit-react/layout").SpaceStyleProps & import("@workday/canvas-kit-react/layout").TextStyleProps & import("@workday/canvas-kit-styling").CSProps & import("@workday/canvas-kit-react/common").PropsWithModel<{ state: { id: string; error: "error" | "alert" | undefined; isRequired: boolean; orientation: "horizontal" | "vertical" | "horizontalEnd" | "horizontalStart"; }; events: {}; }, {}>, { state: { id: string; error: "error" | "alert" | undefined; isRequired: boolean; orientation: "horizontal" | "vertical" | "horizontalEnd" | "horizontalStart"; }; events: {}; }>; Label: import("@workday/canvas-kit-react/common").ElementComponentM<"label", import("@workday/canvas-kit-react/form-field/lib/FormFieldLabel").FormFieldLabelProps, { state: { id: string; error: "error" | "alert" | undefined; isRequired: boolean; orientation: "horizontal" | "vertical" | "horizontalEnd" | "horizontalStart"; }; events: {}; }>; Hint: import("@workday/canvas-kit-react/common").ElementComponentM<"p", import("@workday/canvas-kit-react/text").TextProps, { state: { id: string; error: "error" | "alert" | undefined; isRequired: boolean; orientation: "horizontal" | "vertical" | "horizontalEnd" | "horizontalStart"; }; events: {}; }>; }; //# sourceMappingURL=TextArea.d.ts.map