mirror of
https://github.com/material-components/material-web.git
synced 2026-03-09 00:09:23 +08:00
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
30 lines
884 B
TypeScript
30 lines
884 B
TypeScript
/**
|
|
* @license
|
|
* Copyright 2021 Google LLC
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
import {CSSResultOrNative} from 'lit';
|
|
import {customElement} from 'lit/decorators.js';
|
|
|
|
import {OutlinedSegmentedButton} from './internal/outlined-segmented-button.js';
|
|
import {styles as outlinedStyles} from './internal/outlined-styles.js';
|
|
import {styles as sharedStyles} from './internal/shared-styles.js';
|
|
|
|
declare global {
|
|
interface HTMLElementTagNameMap {
|
|
'md-outlined-segmented-button': MdOutlinedSegmentedButton;
|
|
}
|
|
}
|
|
|
|
/**
|
|
* MdOutlinedSegmentedButton is the custom element for the Material
|
|
* Design outlined segmented button component.
|
|
* @final
|
|
* @suppress {visibility}
|
|
*/
|
|
@customElement('md-outlined-segmented-button')
|
|
export class MdOutlinedSegmentedButton extends OutlinedSegmentedButton {
|
|
static override styles: CSSResultOrNative[] = [sharedStyles, outlinedStyles];
|
|
}
|