material-web/button/filled-button.ts
Material Web Team 74bda6e11c Document md-button
PiperOrigin-RevId: 495160072
2022-12-13 16:45:36 -08:00

44 lines
1.2 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/**
* @license
* Copyright 2021 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
import {customElement} from 'lit/decorators.js';
import {FilledButton} from './lib/filled-button.js';
import {styles as filledStyles} from './lib/filled-styles.css.js';
import {styles as sharedElevationStyles} from './lib/shared-elevation-styles.css.js';
import {styles as sharedStyles} from './lib/shared-styles.css.js';
declare global {
interface HTMLElementTagNameMap {
'md-filled-button': MdFilledButton;
}
}
/**
* @summary Buttons help people take action, such as sending an email, sharing a
* document, or liking a comment.
*
* @description
* __Emphasis:__ High emphasis For the primary, most important, or most common
* action on a screen
*
* __Rationale:__ The filled buttons contrasting surface color makes it the
* most prominent button after the FAB. Its used for final or unblocking
* actions in a flow.
*
* __Example usages:__
* - Save
* - Confirm
* - Done
*
* @final
* @suppress {visibility}
*/
@customElement('md-filled-button')
export class MdFilledButton extends FilledButton {
static override styles = [sharedStyles, sharedElevationStyles, filledStyles];
}