diff --git a/.changeset/unlucky-taxis-judge.md b/.changeset/unlucky-taxis-judge.md new file mode 100644 index 0000000..6f6457e --- /dev/null +++ b/.changeset/unlucky-taxis-judge.md @@ -0,0 +1,5 @@ +--- +"@babylonlabs-io/bbn-core-ui": patch +--- + +export form hooks diff --git a/src/index.tsx b/src/index.tsx index 3559014..02b69dc 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -20,5 +20,7 @@ export * from "./widgets/form/CheckboxField"; export * from "./widgets/form/RadioField"; export * from "./widgets/form/SelectField"; export * from "./widgets/form/hooks"; +export * from "./widgets/form/hooks"; export { ScrollLocker } from "./context/Dialog.context"; +export { useFormContext, useFormState, useWatch } from "react-hook-form"; diff --git a/src/widgets/form/Form/index.tsx b/src/widgets/form/Form/index.tsx index 8897ad7..530e307 100644 --- a/src/widgets/form/Form/index.tsx +++ b/src/widgets/form/Form/index.tsx @@ -1,2 +1 @@ -export { useFormContext, useFormState, useWatch } from "react-hook-form"; export * from "./Form";