google-labs-jules[bot] d0c617fdd7 chore: migrate button component to components/button
Moves the `button` component to `components/button` and creates re-exports in the original `button` directory for backward compatibility.
This change also updates internal imports and includes copyright headers in the re-export files.
2025-12-09 19:25:30 +00:00

44 lines
1.1 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 {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];
}