Skip to content

Commit

Permalink
Export InertiaFormProps (#1596)
Browse files Browse the repository at this point in the history
This is helpful when defining a custom Form wrapper component that will provide custom methods. E.g. `getError(fieldPath: string)`, `getData(fieldPath: string)`.

Co-authored-by: Pedro Borges <oi@pedroborg.es>
  • Loading branch information
olragon and pedroborges authored Sep 24, 2024
1 parent b4bbd75 commit bb49934
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ export const router = Router
export { default as Head } from './Head'
export { InertiaLinkProps, default as Link } from './Link'
export { default as createInertiaApp } from './createInertiaApp'
export { default as useForm } from './useForm'
export { InertiaFormProps, default as useForm } from './useForm'
export { default as usePage } from './usePage'
export { default as useRemember } from './useRemember'

0 comments on commit bb49934

Please sign in to comment.