mirror of
https://github.com/material-components/material-web.git
synced 2024-09-11 13:46:10 +03:00
31 lines
779 B
TypeScript
31 lines
779 B
TypeScript
/**
|
|
* @license
|
|
* Copyright 2023 Google LLC
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
import {CSSResult} from 'lit';
|
|
import {customElement} from 'lit/decorators.js';
|
|
|
|
import {SecondaryTab} from './internal/secondary-tab.js';
|
|
import {styles as secondaryStyles} from './internal/secondary-tab-styles.css.js';
|
|
import {styles as sharedStyles} from './internal/tab-styles.css.js';
|
|
|
|
declare global {
|
|
interface HTMLElementTagNameMap {
|
|
'md-secondary-tab': MdSecondaryTab;
|
|
}
|
|
}
|
|
|
|
// TODO(b/267336507): add docs
|
|
/**
|
|
* @summary Tab allow users to display a tab within a Tabs.
|
|
*
|
|
* @final
|
|
* @suppress {visibility}
|
|
*/
|
|
@customElement('md-secondary-tab')
|
|
export class MdSecondaryTab extends SecondaryTab {
|
|
static override styles: CSSResult[] = [sharedStyles, secondaryStyles];
|
|
}
|