material-web/button/outlined-button.ts
Andrew Jakubowicz 601ebb669c fix(button)!: rename "lib" directory to "internal"
BREAKING CHANGE: Rename `@material/web/button/lib` to `@material/web/button/internal`. Prefer not using internal files.

PiperOrigin-RevId: 549999271
2023-07-21 11:20:19 -07:00

45 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 {OutlinedButton} from './internal/outlined-button.js';
import {styles as outlinedStyles} from './internal/outlined-styles.css.js';
import {styles as sharedStyles} from './internal/shared-styles.css.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 dont distract
* from other onscreen elements.
*
* __Rationale:__ Use an outlined button for actions that need attention but
* arent 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 = [sharedStyles, outlinedStyles];
}