mirror of
https://github.com/material-components/material-web.git
synced 2024-10-26 21:56:56 +03:00
c35bad0c64
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
31 lines
767 B
TypeScript
31 lines
767 B
TypeScript
/**
|
|
* @license
|
|
* Copyright 2023 Google LLC
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
import {CSSResultOrNative} from 'lit';
|
|
import {customElement} from 'lit/decorators.js';
|
|
|
|
import {PrimaryTab} from './internal/primary-tab.js';
|
|
import {styles as primaryStyles} from './internal/primary-tab-styles.js';
|
|
import {styles as sharedStyles} from './internal/tab-styles.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.
|
|
*
|
|
* @final
|
|
* @suppress {visibility}
|
|
*/
|
|
@customElement('md-primary-tab')
|
|
export class MdPrimaryTab extends PrimaryTab {
|
|
static override styles: CSSResultOrNative[] = [sharedStyles, primaryStyles];
|
|
}
|