Skip to content

Commit

Permalink
fix(form-control): form-label requiredIndicator type (chakra-ui#8081)
Browse files Browse the repository at this point in the history
fix: form-label requiredIndicator type

Align requiredIndicator type with optionalIndicator type. Allows for overriding requiredIndicator with `null`.
  • Loading branch information
topaxi authored Oct 28, 2023
1 parent 61f965a commit 58f38c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/components/form-control/src/form-label.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ export interface FormLabelProps
extends HTMLChakraProps<"label">,
ThemingProps<"FormLabel"> {
/**
* @type React.ReactElement
* @type React.ReactNode
*/
requiredIndicator?: React.ReactElement
requiredIndicator?: React.ReactNode
/**
* @type React.ReactNode
*/
Expand Down

0 comments on commit 58f38c7

Please sign in to comment.