@universal-material/web
Version:
Material web components
34 lines • 1.14 kB
TypeScript
import { PropertyValues } from '@lit/reactive-element';
import { CSSResultGroup } from '@lit/reactive-element/css-tag';
import { HTMLTemplateResult } from 'lit';
import { UmToggleButton } from './toggle-button.js';
import '../ripple/ripple.js';
export type UmButtonVariant = 'filled' | 'tonal' | 'elevated' | 'outlined' | 'text';
export type UmButtonColor = 'primary' | 'secondary' | 'tertiary' | 'error';
export declare class UmButton extends UmToggleButton {
#private;
static styles: CSSResultGroup;
/**
* The Button variant to render
*/
variant: UmButtonVariant;
/**
* The Button color
*/
color: UmButtonColor;
trailingIcon: boolean;
private _hasIcon;
private _hasSelectionLabel;
animateTextChange: boolean;
private readonly _textWrapper;
private readonly _text;
firstUpdated(changedProperties: PropertyValues): void;
protected _getContainerClasses(): Record<string, boolean>;
protected _renderContent(): HTMLTemplateResult;
}
declare global {
interface HTMLElementTagNameMap {
'u-button': UmButton;
}
}
//# sourceMappingURL=button.d.ts.map