mirror of
https://github.com/material-components/material-web.git
synced 2024-09-11 13:46:10 +03:00
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
46 lines
1.3 KiB
TypeScript
46 lines
1.3 KiB
TypeScript
/**
|
||
* @license
|
||
* Copyright 2021 Google LLC
|
||
* SPDX-License-Identifier: Apache-2.0
|
||
*/
|
||
|
||
import {CSSResultOrNative} from 'lit';
|
||
import {customElement} from 'lit/decorators.js';
|
||
|
||
import {OutlinedButton} from './internal/outlined-button.js';
|
||
import {styles as outlinedStyles} from './internal/outlined-styles.js';
|
||
import {styles as sharedStyles} from './internal/shared-styles.js';
|
||
|
||
declare global {
|
||
interface HTMLElementTagNameMap {
|
||
'md-outlined-button': MdOutlinedButton;
|
||
}
|
||
}
|
||
|
||
/**
|
||
* @summary Buttons help people take action, such as sending an email, sharing a
|
||
* document, or liking a comment.
|
||
*
|
||
* @description
|
||
* __Emphasis:__ Medium emphasis – For important actions that don’t distract
|
||
* from other onscreen elements.
|
||
*
|
||
* __Rationale:__ Use an outlined button for actions that need attention but
|
||
* aren’t the primary action, such as “See all” or “Add to cart.” This is also
|
||
* the button to use for giving someone the opportunity to change their mind or
|
||
* escape a flow.
|
||
*
|
||
* __Example usages:__
|
||
* - Reply
|
||
* - View all
|
||
* - Add to cart
|
||
* - Take out of trash
|
||
*
|
||
* @final
|
||
* @suppress {visibility}
|
||
*/
|
||
@customElement('md-outlined-button')
|
||
export class MdOutlinedButton extends OutlinedButton {
|
||
static override styles: CSSResultOrNative[] = [sharedStyles, outlinedStyles];
|
||
}
|