jsx-slack
Version:
Build JSON object for Slack Block Kit surfaces from JSX
26 lines (25 loc) • 879 B
TypeScript
import { LayoutBlockProps } from './utils';
export interface FileProps extends LayoutBlockProps {
children?: never;
/** A string of external unique ID for the remote file to show. */
externalId: string;
/**
* Override `source` field.
*
* At the moment, you should not take care of this because only the default
* value `remote` is available in Slack.
*/
source?: string;
}
/**
* [The `file` layout block](https://api.slack.com/reference/messaging/blocks#file)
* to display a remote file.
*
* _This component is available only in `<Blocks>` container for messaging._
*
* Learn about [adding remote files](https://api.slack.com/messaging/files/remote)
* in the document of Slack API.
*
* @return The partial JSON for `file` layout block
*/
export declare const File: import("../../jsx-internals").BuiltInComponent<FileProps>;