UNPKG

dap-design-system

Version:

Official design system for the DÁP (dap.gov.hu)

50 lines (49 loc) 2.71 kB
import { EventName } from '@lit/react'; import { default as Component } from '../../components/form/radio-group/radio-group.js'; import { DdsChangeEvent, DdsBlurEvent, DdsFocusEvent } from '../../events/events'; export type { DdsChangeEvent } from '../../events/events'; export type { DdsBlurEvent } from '../../events/events'; export type { DdsFocusEvent } from '../../events/events'; /** * `dap-ds-radio-group` * @summary A radio group is a form element that allows the user to select one option from a set. * @element dap-ds-radio-group * @title - Radio group * @group radio-button * * @event dds-change - Fired when the radio group is checked. * @event dds-blur - Emitted when the radio group loses focus. * @event dds-focus - Emitted when the radio group gains focus. * * @property {string} name - The name of the radio group. * @property {string} value - The value of the radio group. * @property {boolean} disabled - Whether the radio group is disabled. * @property {boolean} required - Whether the radio group is required. * @property {string} label - The label of the radio group. * @property {boolean} hideLabel - Visually hides the label while keeping it available to assistive technology. (default: false) * @property {string} description - The description of the radio group. * @property {string} tooltip - The tooltip of the radio group. * @property {'top' | 'right' | 'bottom' | 'left'} tooltipPlacement - The tooltip placement of the radio group. * @property {string} feedback - The feedback of the radio group. * @property {'negative' | 'positive' | 'warning'} feedbackType - The feedback type of the radio group. Can be `negative`, `positive`, or `warning`. * @property {boolean} optional - The optional state of the radio group. * @property {string} optionalLabel - Text of optional label. * @property {string} requiredLabel - Text of required indicator. (default: '*') * @property {boolean} subtle - The weight of the label. Default is `false` * @property {'xs' | 'sm' | 'lg'} size - The size of the radio group. Default is `sm`. * @property {boolean} subtle - Font weight of the feedback label. Default is `false` which is bold. * * @slot - The content of the radio group. * @slot feedback-icon - The custom icon of the feedback. * * @csspart base - The main radio group container. * @csspart label - The label of the radio group. * @csspart tooltip - The tooltip of the radio group. * @csspart container - The container of the radio group items. */ declare const reactWrapper: import('@lit/react').ReactWebComponent<Component, { onDdsChange: EventName<DdsChangeEvent>; onDdsBlur: EventName<DdsBlurEvent>; onDdsFocus: EventName<DdsFocusEvent>; }>; export default reactWrapper;