Skip to content

Commit

Permalink
pass through InputLabel props too
Browse files Browse the repository at this point in the history
  • Loading branch information
mattcosta7 committed May 8, 2023
1 parent eb702ba commit c20370f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/_InputLabel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ const InputLabel: React.FC<React.PropsWithChildren<Props>> = ({
visuallyHidden,
sx,
as = 'label',
...props
}) => {
return (
<VisuallyHidden
Expand All @@ -49,6 +50,7 @@ const InputLabel: React.FC<React.PropsWithChildren<Props>> = ({
alignSelf: 'flex-start',
...sx,
}}
{...props}
>
{required ? (
<Box display="flex" as="span">
Expand Down

0 comments on commit c20370f

Please sign in to comment.