RocketChat/Rocket.Chat

View on GitHub
packages/ui-kit/src/blocks/elements/ButtonElement.ts

Summary

Maintainability
A
0 mins
Test Coverage
import type { Actionable } from '../Actionable';
import type { PlainText } from '../text/PlainText';

export type ButtonElement = Actionable<{
    type: 'button';
    text: PlainText;
    url?: string;
    value?: string;
    style?: 'primary' | 'secondary' | 'danger' | 'warning' | 'success';
    secondary?: boolean;
}>;