mirror of
https://github.com/n8n-io/n8n.git
synced 2025-02-21 02:56:40 -08:00
set types
This commit is contained in:
parent
60aacaf5be
commit
9c660ad1c5
|
@ -3,6 +3,9 @@ import { N8nComponent, N8nComponentSize } from '../component';
|
|||
/** Button type */
|
||||
export type ButtonType = 'primary' | 'outline' | 'light' | 'text';
|
||||
|
||||
/** Button themes */
|
||||
export type ButtonTheme = 'success' | 'warning' | 'danger';
|
||||
|
||||
/** Button Component */
|
||||
export declare class N8nButton extends N8nComponent {
|
||||
/** Button text */
|
||||
|
@ -12,7 +15,7 @@ export declare class N8nButton extends N8nComponent {
|
|||
title: string;
|
||||
|
||||
/** Color scheme */
|
||||
theme: string;
|
||||
theme: ButtonTheme;
|
||||
|
||||
/** Button size */
|
||||
size: N8nComponentSize;
|
||||
|
|
|
@ -1,7 +1,11 @@
|
|||
import { N8nComponent, N8nComponentSize } from '../component';
|
||||
import { ButtonTheme, ButtonType } from '../N8nButton';
|
||||
|
||||
/** Icon Button Component */
|
||||
export declare class N8nIconButton extends N8nComponent {
|
||||
/** Button type */
|
||||
type: ButtonType;
|
||||
|
||||
/** Button title on hover */
|
||||
title: string;
|
||||
|
||||
|
@ -19,4 +23,7 @@ export declare class N8nIconButton extends N8nComponent {
|
|||
|
||||
/** Button icon, accepts an icon name of font awesome icon component */
|
||||
icon: string;
|
||||
|
||||
/** Button theme */
|
||||
theme: ButtonTheme;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue