Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Commit

Permalink
Ensure Label accepts correct HTML Attributes Props
Browse files Browse the repository at this point in the history
  • Loading branch information
opr committed May 18, 2021
1 parent d93aecd commit 710acbc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/checkout/label/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
*/
import { Fragment } from '@wordpress/element';
import classNames from 'classnames';
import type { ReactElement, HTMLAttributes } from 'react';
import type { ReactElement, HTMLProps } from 'react';

interface LabelProps {
interface LabelProps extends HTMLProps< HTMLLabelElement > {
label?: string;
screenReaderLabel?: string;
wrapperElement?: string;
wrapperProps?: HTMLAttributes< HTMLElement >;
wrapperProps?: HTMLProps< HTMLElement >;
}

/**
Expand Down

0 comments on commit 710acbc

Please sign in to comment.