Merge commit '19d765266fc571f25e7f66c20ff77a2999354f35' into iipbs/wr/form

This commit is contained in:
truthwing
2025-03-11 11:20:37 +09:00
2 changed files with 22 additions and 1 deletions
@@ -0,0 +1,19 @@
import React from "react";
import { FormControl, FormItem, FormLabel, FormMessage } from "../form";
const FormUi = React.forwardRef<
HTMLDivElement,
React.HTMLAttributes<HTMLDivElement> & {label:string|undefined}
>(({children, label},ref)=>{
return (
<FormItem ref={ref}>
{label?<FormLabel className="text-xl">{label}</FormLabel>:<></>}
<FormControl>
{children}
</FormControl>
<FormMessage />
</FormItem>
)
})
FormUi.displayName = 'FormUi';
export { FormUi };
@@ -1,9 +1,11 @@
export * from "./chart";
export * from "./file-upload";
export * from "./form";
export * from "./form_ui";
export * from "./scroll";
export * from "./search_form";
export * from "./search_input";
export * from "./search_input_select";
export * from "./select";
export * from "./table";
export * from "./scroll"