mirror of
https://github.com/material-components/material-web.git
synced 2024-09-11 21:57:41 +03:00
c35bad0c64
We are changing the names of these files to reduce similarity with CSS modules and avoid clashing with tooling built around that. If you're importing `*/internal/styles.css.js`, swap to `*/internal/styles.js`. PiperOrigin-RevId: 611265000
44 lines
1.1 KiB
TypeScript
44 lines
1.1 KiB
TypeScript
/**
|
||
* @license
|
||
* Copyright 2021 Google LLC
|
||
* SPDX-License-Identifier: Apache-2.0
|
||
*/
|
||
|
||
import {CSSResultOrNative} from 'lit';
|
||
import {customElement} from 'lit/decorators.js';
|
||
|
||
import {styles as sharedStyles} from './internal/shared-styles.js';
|
||
import {TextButton} from './internal/text-button.js';
|
||
import {styles as textStyles} from './internal/text-styles.js';
|
||
|
||
declare global {
|
||
interface HTMLElementTagNameMap {
|
||
'md-text-button': MdTextButton;
|
||
}
|
||
}
|
||
|
||
/**
|
||
* @summary Buttons help people take action, such as sending an email, sharing a
|
||
* document, or liking a comment.
|
||
*
|
||
* @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-button')
|
||
export class MdTextButton extends TextButton {
|
||
static override styles: CSSResultOrNative[] = [sharedStyles, textStyles];
|
||
}
|