mirror of
https://github.com/material-components/material-web.git
synced 2024-09-11 13:46:10 +03:00
BREAKING CHANGE: remove `variant` attributes and change `md-tab` to `md-primary-tab`, or `md-secondary-tab` if using `variant="secondary" PiperOrigin-RevId: 561077231
28 lines
679 B
TypeScript
28 lines
679 B
TypeScript
/**
|
|
* @license
|
|
* Copyright 2023 Google LLC
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
import {customElement} from 'lit/decorators.js';
|
|
|
|
import {PrimaryTab} from './internal/primary-tab.js';
|
|
import {styles as primaryStyles} from './internal/primary-tab-styles.css.js';
|
|
import {styles as sharedStyles} from './internal/tab-styles.css.js';
|
|
|
|
declare global {
|
|
interface HTMLElementTagNameMap {
|
|
'md-primary-tab': MdPrimaryTab;
|
|
}
|
|
}
|
|
|
|
// TODO(b/267336507): add docs
|
|
/**
|
|
* @summary Tab allow users to display a tab within a Tabs.
|
|
*
|
|
*/
|
|
@customElement('md-primary-tab')
|
|
export class MdPrimaryTab extends PrimaryTab {
|
|
static override styles = [sharedStyles, primaryStyles];
|
|
}
|