origami-zen
Version:
Collection of reusable web components. Built for Origami CMS.
30 lines (29 loc) • 842 B
TypeScript
import { LitElement } from '@polymer/lit-element';
import { TemplateResult } from 'lit-html';
export interface ButtonProps {
size?: string;
icon?: string | boolean;
iconright?: boolean;
hollow?: boolean;
color?: string;
disabled?: boolean;
loading?: boolean;
}
/**
* @class Button
* The button element is a styled button with options of
* adding an icon, loading state, and size.
*/
export default class Button extends LitElement implements ButtonProps {
size?: string;
icon?: string | boolean;
iconright?: boolean;
hollow?: boolean;
color?: string;
disabled?: boolean;
loading?: boolean;
private static _boundAttributes;
private readonly _icon;
_render({icon, size, hollow}: ButtonProps): TemplateResult;
private readonly _iconColor;
}