sudovanilla-website/public/@shoelace-style/shoelace/cdn/react/radio-group/index.d.ts

39 lines
2 KiB
TypeScript
Raw Normal View History

2024-05-13 22:34:06 -05:00
import Component from '../../components/radio-group/radio-group.component.js';
import { type EventName } from '@lit/react';
import type { SlChangeEvent } from '../../events/events.js';
import type { SlInputEvent } from '../../events/events.js';
import type { SlInvalidEvent } from '../../events/events.js';
export type { SlChangeEvent } from '../../events/events.js';
export type { SlInputEvent } from '../../events/events.js';
export type { SlInvalidEvent } from '../../events/events.js';
/**
* @summary Radio groups are used to group multiple [radios](/components/radio) or [radio buttons](/components/radio-button) so they function as a single form control.
* @documentation https://shoelace.style/components/radio-group
* @status stable
* @since 2.0
*
* @dependency sl-button-group
*
* @slot - The default slot where `<sl-radio>` or `<sl-radio-button>` elements are placed.
* @slot label - The radio group's label. Required for proper accessibility. Alternatively, you can use the `label`
* attribute.
* @slot help-text - Text that describes how to use the radio group. Alternatively, you can use the `help-text` attribute.
*
* @event sl-change - Emitted when the radio group's selected value changes.
* @event sl-input - Emitted when the radio group receives user input.
* @event sl-invalid - Emitted when the form control has been checked for validity and its constraints aren't satisfied.
*
* @csspart form-control - The form control that wraps the label, input, and help text.
* @csspart form-control-label - The label's wrapper.
* @csspart form-control-input - The input's wrapper.
* @csspart form-control-help-text - The help text's wrapper.
* @csspart button-group - The button group that wraps radio buttons.
* @csspart button-group__base - The button group's `base` part.
*/
declare const reactWrapper: import("@lit/react").ReactWebComponent<Component, {
onSlChange: EventName<SlChangeEvent>;
onSlInput: EventName<SlInputEvent>;
onSlInvalid: EventName<SlInvalidEvent>;
}>;
export default reactWrapper;