30 lines
1.2 KiB
TypeScript
Executable file
30 lines
1.2 KiB
TypeScript
Executable file
import Component from '../../components/radio/radio.component.js';
|
|
import { type EventName } from '@lit/react';
|
|
import type { SlBlurEvent } from '../../events/events.js';
|
|
import type { SlFocusEvent } from '../../events/events.js';
|
|
export type { SlBlurEvent } from '../../events/events.js';
|
|
export type { SlFocusEvent } from '../../events/events.js';
|
|
/**
|
|
* @summary Radios allow the user to select a single option from a group.
|
|
* @documentation https://shoelace.style/components/radio
|
|
* @status stable
|
|
* @since 2.0
|
|
*
|
|
* @dependency sl-icon
|
|
*
|
|
* @slot - The radio's label.
|
|
*
|
|
* @event sl-blur - Emitted when the control loses focus.
|
|
* @event sl-focus - Emitted when the control gains focus.
|
|
*
|
|
* @csspart base - The component's base wrapper.
|
|
* @csspart control - The circular container that wraps the radio's checked state.
|
|
* @csspart control--checked - The radio control when the radio is checked.
|
|
* @csspart checked-icon - The checked icon, an `<sl-icon>` element.
|
|
* @csspart label - The container that wraps the radio's label.
|
|
*/
|
|
declare const reactWrapper: import("@lit/react").ReactWebComponent<Component, {
|
|
onSlBlur: EventName<SlBlurEvent>;
|
|
onSlFocus: EventName<SlFocusEvent>;
|
|
}>;
|
|
export default reactWrapper;
|