@synergy-design-system/react
Version:
React wrappers for the Synergy Design System
30 lines (29 loc) • 1.33 kB
TypeScript
import Component from '@synergy-design-system/components/components/radio/radio.component.js';
import { type EventName } from '@lit/react';
import type { SynBlurEvent } from '@synergy-design-system/components';
import type { SynFocusEvent } from '@synergy-design-system/components';
/**
* @summary Radios allow the user to select a single option from a group.
* @documentation https://synergy-design-system.github.io/?path=/docs/components-syn-radio--docs
* @status stable
* @since 2.0
*
* @dependency syn-icon
*
* @slot - The radio's label.
*
* @event syn-blur - Emitted when the control loses focus.
* @event syn-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 `<syn-icon>` element.
* @csspart label - The container that wraps the radio's label.
*/
export declare const SynRadio: import("@lit/react").ReactWebComponent<Component, {
onSynBlur: EventName<SynBlurEvent>;
onSynFocus: EventName<SynFocusEvent>;
}>;
export type { SynBlurEvent } from '@synergy-design-system/components';
export type { SynFocusEvent } from '@synergy-design-system/components';