fix(ui): extend FieldLabelProps with native div element props

FieldLabel renders a div and spreads restProps onto it, but
FieldLabelProps didn't extend native div props. This meant
attributes like aria-*, data-*, role, etc. couldn't be
passed with type safety.

Signed-off-by: Johan Persson <johanopersson@gmail.com>
This commit is contained in:
Johan Persson
2026-03-03 14:04:38 +01:00
parent 8236a3d7c3
commit bfd121436b
@@ -45,4 +45,6 @@ export type FieldLabelOwnProps = {
};
/** @public */
export interface FieldLabelProps extends FieldLabelOwnProps {}
export interface FieldLabelProps
extends FieldLabelOwnProps,
Omit<React.ComponentPropsWithoutRef<'div'>, keyof FieldLabelOwnProps> {}