fox-block-builder
Version:
Maintainable code for loop slack-block-kit-like modal builder
22 lines (21 loc) • 971 B
TypeScript
import { ElementBuilderBase } from '../internal/base';
import { Prop } from '../internal/constants';
import { RegEx } from '../internal/methods/set-methods';
import { ActionId, DispatchActionOnCharacterEntered, DispatchActionOnEnterPressed, End, FocusOnLoad, InitialValue, MaxLength, MinLength, Multiline, Placeholder } from '../internal/methods';
export interface TextInputParams {
actionId?: string;
initialValue?: string;
multiline?: boolean;
placeholder?: string;
[Prop.MinLength]?: number;
[Prop.MaxLength]?: number;
[Prop.RegExp]?: RegEx;
}
export interface TextInputBuilder extends ActionId, DispatchActionOnCharacterEntered, DispatchActionOnEnterPressed, End, FocusOnLoad, InitialValue<string>, MaxLength, MinLength, Multiline, Placeholder, RegEx {
}
/**
* @@link https://api.slack.com/reference/block-kit/block-elements#input
* @@displayName Plain-Text Input
*/
export declare class TextInputBuilder extends ElementBuilderBase {
}