forked from material-components/material-web
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtext-button.ts
More file actions
43 lines (39 loc) · 1.11 KB
/
text-button.ts
File metadata and controls
43 lines (39 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
/**
* @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];
}