Skip to content

Commit

Permalink
fix: export FormFieldContext
Browse files Browse the repository at this point in the history
  • Loading branch information
receter committed Oct 8, 2024
1 parent f92eed5 commit c1c1a85
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion packages/ui/lib/FormField/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { Label } from "../Label";
import { FormFieldContext } from "./context";
import { FormFieldProps, useFormField } from "./useFormField";

export const FormField = forwardRef<
const FormField = forwardRef<
HTMLDivElement,
FormFieldProps<React.ComponentProps<"div">>
>((props, forwardedRef) => {
Expand All @@ -23,3 +23,5 @@ export const FormField = forwardRef<
</FormFieldContext.Provider>
);
});

export { FormField, FormFieldContext };
2 changes: 1 addition & 1 deletion packages/ui/lib/main.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export { Button, ButtonA } from "./Button";
export { FormField } from "./FormField";
export { FormField, FormFieldContext } from "./FormField";
export { Label } from "./Label";
export { Stack } from "./Stack";
export { TextLink, TextLinkButton } from "./TextLink";
Expand Down

0 comments on commit c1c1a85

Please sign in to comment.