@muraldevkit/ui-toolkit 2.6.0 → 2.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -8,3 +8,6 @@ export * from './fieldset/MrlFieldset';
|
|
|
8
8
|
export * from './checkbox/MrlCheckbox';
|
|
9
9
|
export * from './checkbox/MrlCheckboxStandalone';
|
|
10
10
|
export * from './constants';
|
|
11
|
+
export * from './radio/MrlRadioGroup';
|
|
12
|
+
export * from './radio/MrlRadioButton';
|
|
13
|
+
export * from './radio/MrlRadioButtonStandalone';
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface MrlRadioGroupProps extends React.ComponentPropsWithoutRef<'fieldset'> {
|
|
3
|
+
/** List of radio buttons */
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
/** Additional class to add to the fieldset element */
|
|
6
|
+
className?: string;
|
|
7
|
+
/** The radio group label, text for the fieldset's legend */
|
|
8
|
+
label: string;
|
|
9
|
+
/**
|
|
10
|
+
* Adds the "aria-required" and "aria-invalid" attributes to the fieldset
|
|
11
|
+
* element to announce the error state to screen readers
|
|
12
|
+
*/
|
|
13
|
+
hasError?: boolean;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Radio button group that allows the user to select one option from a provided list
|
|
17
|
+
*
|
|
18
|
+
* @param {MrlRadioGroupProps} props - the component props
|
|
19
|
+
* @returns a radio group
|
|
20
|
+
*/
|
|
21
|
+
export declare function MrlRadioGroup({ className, children, label, hasError, ...rest }: MrlRadioGroupProps): JSX.Element;
|
|
22
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './MrlRadioGroup';
|