mirror of
https://github.com/material-components/material-web.git
synced 2024-09-19 17:47:46 +03:00
74bda6e11c
PiperOrigin-RevId: 495160072
43 lines
1.1 KiB
TypeScript
43 lines
1.1 KiB
TypeScript
/**
|
||
* @license
|
||
* Copyright 2021 Google LLC
|
||
* SPDX-License-Identifier: Apache-2.0
|
||
*/
|
||
|
||
import {customElement} from 'lit/decorators.js';
|
||
|
||
import {styles as sharedStyles} from './lib/shared-styles.css.js';
|
||
import {TextLinkButton} from './lib/text-link-button.js';
|
||
import {styles as textStyles} from './lib/text-styles.css.js';
|
||
|
||
declare global {
|
||
interface HTMLElementTagNameMap {
|
||
'md-text-link-button': MdTextLinkButton;
|
||
}
|
||
}
|
||
|
||
/**
|
||
* @summary Buttons help people take action, such as sending an email, sharing a
|
||
* document, or liking a comment. This is a linkable variant.
|
||
*
|
||
* @description
|
||
* __Emphasis:__ Low emphasis – For optional or supplementary actions with the
|
||
* least amount of prominence
|
||
*
|
||
* __Rationale:__ Text buttons have less visual prominence, so should be used
|
||
* for low emphasis actions, such as an alternative option.
|
||
*
|
||
* __Example usages:__
|
||
* - Learn more
|
||
* - View all
|
||
* - Change account
|
||
* - Turn on
|
||
*
|
||
* @final
|
||
* @suppress {visibility}
|
||
*/
|
||
@customElement('md-text-link-button')
|
||
export class MdTextLinkButton extends TextLinkButton {
|
||
static override styles = [sharedStyles, textStyles];
|
||
}
|