Skip to content

Commit

Permalink
add id back into the docs
Browse files Browse the repository at this point in the history
  • Loading branch information
snowystinger committed Aug 30, 2024
1 parent 7291d42 commit a9911d1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/@react-types/shared/src/dom.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,12 @@ export interface AriaValidationProps {

// A set of common DOM props that are allowed on any component
// Ensure this is synced with DOMPropNames in filterDOMProps
export interface DOMProps extends Pick<HTMLAttributes<HTMLElement>, 'id'> {}
export interface DOMProps {
/**
* The element's unique identifier. See [MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/id).
*/
id?: string | undefined
}

export interface FocusableDOMProps extends DOMProps {
/**
Expand Down

0 comments on commit a9911d1

Please sign in to comment.