mirror of
https://github.com/material-components/material-web.git
synced 2024-10-26 21:56:56 +03:00
99918a0b88
PiperOrigin-RevId: 569372050
39 lines
934 B
TypeScript
39 lines
934 B
TypeScript
/**
|
|
* @license
|
|
* Copyright 2022 Google LLC
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
import {customElement} from 'lit/decorators.js';
|
|
|
|
import {styles as forcedColorsStyles} from './internal/forced-colors-styles.css.js';
|
|
import {Radio} from './internal/radio.js';
|
|
import {styles} from './internal/radio-styles.css.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 = [styles, forcedColorsStyles];
|
|
}
|