lambda-ui-components 1.3.0 → 1.3.1

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.
package/dist/main.d.ts CHANGED
@@ -2209,12 +2209,24 @@ export declare interface RadioGroupProps extends Omit<HTMLAttributes<HTMLDivElem
2209
2209
  * The HTML `name` attribute applied to all radio buttons. Essential for grouping and ensuring only one option can be selected at a time.
2210
2210
  */
2211
2211
  name?: string;
2212
+ /**
2213
+ * The current value of the selected radio button (controlled mode).
2214
+ * Takes precedence over selectedOption.
2215
+ */
2216
+ value?: string;
2217
+ /**
2218
+ * Callback fired when a radio button is selected.
2219
+ * Takes precedence over onChangeOption.
2220
+ */
2221
+ onChange?: (value: string) => void;
2212
2222
  /**
2213
2223
  * The currently selected radio button's `value` (for use as a controlled component).
2224
+ * Legacy prop: Prefer `value` for standard form integration.
2214
2225
  */
2215
2226
  selectedOption?: string;
2216
2227
  /**
2217
2228
  * Callback function executed when the user selects a different radio button. Receives the `value` of the newly selected radio.
2229
+ * Legacy prop: Prefer `onChange` for standard form integration.
2218
2230
  */
2219
2231
  onChangeOption?: (value: string) => void;
2220
2232
  /**