diff --git a/packages/react-aria-components/src/Button.tsx b/packages/react-aria-components/src/Button.tsx index 4218ad76e36..158f86d43db 100644 --- a/packages/react-aria-components/src/Button.tsx +++ b/packages/react-aria-components/src/Button.tsx @@ -43,12 +43,12 @@ export interface ButtonRenderProps { } export interface ButtonProps extends Omit, SlotProps, RenderProps { - /** + /** * The
element to associate the button with. * The value of this attribute must be the id of a in the same document. */ form?: string, - /** + /** * The URL that processes the information submitted by the button. * Overrides the action attribute of the button's form owner. */ diff --git a/packages/react-aria-components/src/Calendar.tsx b/packages/react-aria-components/src/Calendar.tsx index 61d0ef136d7..f096560e83f 100644 --- a/packages/react-aria-components/src/Calendar.tsx +++ b/packages/react-aria-components/src/Calendar.tsx @@ -466,7 +466,7 @@ function CalendarCell({date, ...otherProps}: CalendarCellProps, ref: ForwardedRe return ( -
+
); } diff --git a/packages/react-aria-components/src/Checkbox.tsx b/packages/react-aria-components/src/Checkbox.tsx index e4999320a9c..073ea9e5743 100644 --- a/packages/react-aria-components/src/Checkbox.tsx +++ b/packages/react-aria-components/src/Checkbox.tsx @@ -12,6 +12,7 @@ import {AriaCheckboxGroupProps, AriaCheckboxProps, mergeProps, useCheckbox, useCheckboxGroup, useCheckboxGroupItem, useFocusRing, useHover, usePress, VisuallyHidden} from 'react-aria'; import {CheckboxGroupState, useCheckboxGroupState, useToggleState, ValidationState} from 'react-stately'; import {ContextValue, Provider, RenderProps, SlotProps, useContextProps, useRenderProps, useSlot} from './utils'; +import {filterDOMProps} from '@react-aria/utils'; import {LabelContext} from './Label'; import React, {createContext, ForwardedRef, forwardRef, useContext, useState} from 'react'; import {TextContext} from './Text'; @@ -204,9 +205,12 @@ function Checkbox(props: CheckboxProps, ref: ForwardedRef) { } }); + let DOMProps = filterDOMProps(props); + delete DOMProps.id; + return (