Skip to content

Commit

Permalink
[docs] Fix type arguments in Custom Field page (#12619)
Browse files Browse the repository at this point in the history
Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
  • Loading branch information
Juneezee committed Apr 4, 2024
1 parent fdffa6a commit f617d70
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docs/data/date-pickers/custom-field/custom-field.md
Original file line number Diff line number Diff line change
Expand Up @@ -173,20 +173,22 @@ On the examples below, you can see that the typing of the props received by a cu

```tsx
interface JoyDateFieldProps
extends UseDateFieldProps<Dayjs>, // The headless field props
extends UseDateFieldProps<Dayjs, false>, // The headless field props
BaseSingleInputFieldProps<
Dayjs | null,
Dayjs,
FieldSection,
false, // `true` for `enableAccessibleFieldDOMStructure`
DateValidationError
> {} // The DOM field props

interface JoyDateTimeFieldProps
extends UseDateTimeFieldProps<Dayjs>, // The headless field props
extends UseDateTimeFieldProps<Dayjs, false>, // The headless field props
BaseSingleInputFieldProps<
Dayjs | null,
Dayjs,
FieldSection,
false, // `true` for `enableAccessibleFieldDOMStructure`
DateTimeValidationError
> {} // The DOM field props
```
Expand Down

0 comments on commit f617d70

Please sign in to comment.