mirror of
https://github.com/material-components/material-web.git
synced 2024-10-26 21:56:56 +03:00
6b2955bffe
PiperOrigin-RevId: 561157766
27 lines
545 B
TypeScript
27 lines
545 B
TypeScript
/**
|
|
* @license
|
|
* Copyright 2023 Google LLC
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
import {property} from 'lit/decorators.js';
|
|
|
|
import {Tab} from './tab.js';
|
|
|
|
/**
|
|
* A primary tab component.
|
|
*/
|
|
export class PrimaryTab extends Tab {
|
|
/**
|
|
* Whether or not the icon renders inline with label or stacked vertically.
|
|
*/
|
|
@property({type: Boolean, attribute: 'inline-icon'}) inlineIcon = false;
|
|
|
|
protected override getContentClasses() {
|
|
return {
|
|
...super.getContentClasses(),
|
|
'stacked': !this.inlineIcon,
|
|
};
|
|
}
|
|
}
|