UNPKG

jsx-slack

Version:

Build JSON object for Slack Block Kit surfaces from JSX

27 lines (26 loc) 774 B
import { InputTextProps } from '../layout/Input'; export interface TextareaProps extends Omit<InputTextProps, 'type'> { } /** * The input component for rendering `input` layout block containing * [a plain-text input](https://api.slack.com/reference/block-kit/block-elements#input) * with multiline text. * * It should place on immidiate children of container component. * * ```jsx * <Modal title="My App"> * <Textarea * label="Tweet" * actionId="tweet" * placeholder="What’s happening?" * maxLength={280} * required * /> * </Modal> * ``` * * @return The partial JSON for `input` layout block with a multiline plain-text * input */ export declare const Textarea: import("../../jsx-internals").BuiltInComponent<TextareaProps>;