material-web/radio/radio.ts
Elizabeth Mitchell c35bad0c64 fix: rename internal <styles>.css.js to <styles>.css
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
2024-02-28 16:20:22 -08:00

39 lines
885 B
TypeScript

/**
* @license
* Copyright 2022 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
import {CSSResultOrNative} from 'lit';
import {customElement} from 'lit/decorators.js';
import {Radio} from './internal/radio.js';
import {styles} from './internal/radio-styles.js';
declare global {
interface HTMLElementTagNameMap {
'md-radio': MdRadio;
}
}
/**
* @summary Radio buttons allow users to select one option from a set.
*
* @description
* Radio buttons are the recommended way to allow users to make a single
* selection from a list of options.
*
* Only one radio button can be selected at a time.
*
* Use radio buttons to:
* - Select a single option from a set
* - Expose all available options
*
* @final
* @suppress {visibility}
*/
@customElement('md-radio')
export class MdRadio extends Radio {
static override styles: CSSResultOrNative[] = [styles];
}