@wavv/ui 2.7.1 → 2.7.2
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.
|
@@ -16,7 +16,7 @@ declare const Form: {
|
|
|
16
16
|
}): import("react/jsx-runtime").JSX.Element;
|
|
17
17
|
Radio: ({ id, label, labelPosition, checked, disabled, labelColor, margin, marginTop, marginBottom, marginRight, marginLeft, className, readOnly, iconColor, tiny, small, ...props }: {
|
|
18
18
|
id?: string;
|
|
19
|
-
label?:
|
|
19
|
+
label?: ReactNode;
|
|
20
20
|
labelPosition?: "left" | "right";
|
|
21
21
|
labelColor?: string;
|
|
22
22
|
disabled?: boolean;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import type { HTMLProps } from 'react';
|
|
1
|
+
import type { HTMLProps, ReactNode } from 'react';
|
|
2
2
|
import type { AsProp, Margin } from './types';
|
|
3
3
|
type ElAttributes = HTMLProps<HTMLInputElement> & AsProp;
|
|
4
4
|
type RadioProps = {
|
|
5
5
|
/** Id of the input element */
|
|
6
6
|
id?: string;
|
|
7
|
-
/** Places a label element beside the radio.
|
|
8
|
-
label?:
|
|
7
|
+
/** Places a label element beside the radio. Accepts a string or any React node for custom content. */
|
|
8
|
+
label?: ReactNode;
|
|
9
9
|
/** Sets the label on the left or right of the radio */
|
|
10
10
|
labelPosition?: 'left' | 'right';
|
|
11
11
|
/** Sets the color of the label */
|