UNPKG

nextuiq

Version:

NextUIQ is a modern, lightweight, and developer-friendly UI component library for React and Next.js. Built with TypeScript and Tailwind CSS, it offers customizable, accessible, and performance-optimized components with built-in dark mode, theme customizat

2 lines (1 loc) 845 B
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index46.js"),t=require("react").memo((({onSubmit:t,children:s,className:a="",disabled:i=!1,loading:r=!1,autoComplete:o="off",id:n,name:l,noValidate:m=!1})=>e.jsxRuntimeExports.jsxs("form",{id:n,name:l,onSubmit(e){e.preventDefault(),i||r||t(e)},className:`space-y-4 ${i||r?"opacity-70 pointer-events-none":""} ${a}`,autoComplete:o,noValidate:m,"aria-disabled":i||r,children:[r&&e.jsxRuntimeExports.jsx("div",{className:"absolute inset-0 bg-[oklch(var(--theme-background)/0.5)] flex items-center justify-center z-50",children:e.jsxRuntimeExports.jsx("div",{className:"animate-spin rounded-full h-8 w-8 border-b-2 border-[oklch(var(--theme-primary))]"})}),e.jsxRuntimeExports.jsx("div",{className:r?"opacity-50":"",children:s})]})));exports.Form=t;