create-huenei-template 0.2.14 → 0.2.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/config/templates.js +7 -0
- package/dist/templates/frontend/react-ssr/.cursor/agents/accessibility-reviewer.md +22 -0
- package/dist/templates/frontend/react-ssr/.cursor/agents/nextjs-code-reviewer.md +24 -0
- package/dist/templates/frontend/react-ssr/.cursor/agents/react-test-expert.md +32 -0
- package/dist/templates/frontend/react-ssr/.cursor/agents/security-auditor.md +25 -0
- package/dist/templates/frontend/react-ssr/.cursor/commands/new-component.md +97 -0
- package/dist/templates/frontend/react-ssr/.cursor/commands/new-page.md +95 -0
- package/dist/templates/frontend/react-ssr/.cursor/commands/new-prisma-model.md +66 -0
- package/dist/templates/frontend/react-ssr/.cursor/commands/new-server-action.md +89 -0
- package/dist/templates/frontend/react-ssr/.cursor/hooks/auto-format.ts +64 -0
- package/dist/templates/frontend/react-ssr/.cursor/hooks/auto-test-on-stop.ts +94 -0
- package/dist/templates/frontend/react-ssr/.cursor/hooks/block-dangerous-commands.ts +120 -0
- package/dist/templates/frontend/react-ssr/.cursor/hooks/ensure-tests-exist.ts +209 -0
- package/dist/templates/frontend/react-ssr/.cursor/hooks/protect-sensitive-files.ts +101 -0
- package/dist/templates/frontend/react-ssr/.cursor/hooks/session-context.ts +93 -0
- package/dist/templates/frontend/react-ssr/.cursor/hooks/tsconfig.json +10 -0
- package/dist/templates/frontend/react-ssr/.cursor/hooks.json +41 -0
- package/dist/templates/frontend/react-ssr/.cursor/rules/auth-patterns.mdc +48 -0
- package/dist/templates/frontend/react-ssr/.cursor/rules/code-quality.mdc +39 -0
- package/dist/templates/frontend/react-ssr/.cursor/rules/naming-conventions.mdc +32 -0
- package/dist/templates/frontend/react-ssr/.cursor/rules/nextjs-architecture.mdc +51 -0
- package/dist/templates/frontend/react-ssr/.cursor/rules/prisma-standards.mdc +53 -0
- package/dist/templates/frontend/react-ssr/.cursor/rules/react-conventions.mdc +52 -0
- package/dist/templates/frontend/react-ssr/.cursor/rules/testing-conventions.mdc +53 -0
- package/dist/templates/frontend/react-ssr/.cursor/rules/ui-stack.mdc +47 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/authjs-skills/SKILL.md +1149 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/daisyui-5/SKILL.md +189 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/daisyui-5/daisyUI5.skill +0 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/daisyui-5/references/creating-components.md +412 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/daisyui-5/references/data-display.md +341 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/daisyui-5/references/feedback.md +240 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/daisyui-5/references/input.md +283 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/daisyui-5/references/layout.md +275 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/daisyui-5/references/navigation.md +338 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/daisyui-5/scripts/daisy-meta.ts +220 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/daisyui-5/scripts/generate-daisy-safelist.ts +152 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/docker-expert/SKILL.md +413 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/nextjs-app-router-patterns/SKILL.md +537 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/prisma-cli/SKILL.md +243 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/prisma-cli/references/db-execute.md +75 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/prisma-cli/references/db-pull.md +185 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/prisma-cli/references/db-push.md +148 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/prisma-cli/references/db-seed.md +191 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/prisma-cli/references/debug.md +46 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/prisma-cli/references/dev.md +157 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/prisma-cli/references/format.md +48 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/prisma-cli/references/generate.md +147 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/prisma-cli/references/init.md +118 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/prisma-cli/references/migrate-deploy.md +127 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/prisma-cli/references/migrate-dev.md +143 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/prisma-cli/references/migrate-diff.md +89 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/prisma-cli/references/migrate-reset.md +72 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/prisma-cli/references/migrate-resolve.md +57 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/prisma-cli/references/migrate-status.md +65 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/prisma-cli/references/studio.md +122 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/prisma-cli/references/validate.md +53 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/prisma-client-api/SKILL.md +216 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/prisma-client-api/references/client-methods.md +221 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/prisma-client-api/references/constructor.md +185 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/prisma-client-api/references/filters.md +256 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/prisma-client-api/references/model-queries.md +281 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/prisma-client-api/references/query-options.md +276 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/prisma-client-api/references/raw-queries.md +194 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/prisma-client-api/references/relations.md +308 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/prisma-client-api/references/transactions.md +184 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/react-hook-form/AGENTS.md +97 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/react-hook-form/README.md +138 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/react-hook-form/SKILL.md +116 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/react-hook-form/assets/templates/_template.md +26 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/react-hook-form/references/_sections.md +46 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/react-hook-form/references/adv-devtools-performance.md +69 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/react-hook-form/references/adv-formprovider-memo.md +78 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/react-hook-form/references/adv-testing-wrapper.md +63 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/react-hook-form/references/array-complete-default-objects.md +66 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/react-hook-form/references/array-separate-crud-operations.md +76 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/react-hook-form/references/array-unique-fieldarray-per-name.md +58 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/react-hook-form/references/array-use-field-id-as-key.md +54 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/react-hook-form/references/array-virtualization-formprovider.md +64 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/react-hook-form/references/ctrl-avoid-double-registration.md +46 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/react-hook-form/references/ctrl-controller-field-props.md +56 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/react-hook-form/references/ctrl-local-state-combination.md +69 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/react-hook-form/references/ctrl-single-usecontroller-per-component.md +62 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/react-hook-form/references/ctrl-usecontroller-isolation.md +64 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/react-hook-form/references/formcfg-async-default-values.md +69 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/react-hook-form/references/formcfg-default-values.md +57 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/react-hook-form/references/formcfg-revalidate-mode.md +48 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/react-hook-form/references/formcfg-should-unregister.md +62 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/react-hook-form/references/formcfg-useeffect-dependency.md +54 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/react-hook-form/references/formcfg-validation-mode.md +51 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/react-hook-form/references/formstate-avoid-isvalid-with-onsubmit.md +58 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/react-hook-form/references/formstate-destructure-formstate.md +48 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/react-hook-form/references/formstate-getfieldstate-for-single-field.md +49 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/react-hook-form/references/formstate-subscribe-to-specific-fields.md +54 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/react-hook-form/references/formstate-useformstate-isolation.md +62 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/react-hook-form/references/integ-mui-controller-pattern.md +59 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/react-hook-form/references/integ-shadcn-form-import.md +64 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/react-hook-form/references/integ-shadcn-select-wiring.md +64 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/react-hook-form/references/integ-value-transform.md +59 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/react-hook-form/references/sub-avoid-watch-in-render.md +48 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/react-hook-form/references/sub-deep-subscription.md +62 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/react-hook-form/references/sub-useformcontext-sparingly.md +58 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/react-hook-form/references/sub-usewatch-default-value.md +50 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/react-hook-form/references/sub-usewatch-over-watch.md +58 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/react-hook-form/references/sub-usewatch-with-getvalues.md +54 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/react-hook-form/references/sub-watch-specific-fields.md +54 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/react-hook-form/references/valid-delay-error.md +52 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/react-hook-form/references/valid-dynamic-schema-factory.md +57 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/react-hook-form/references/valid-error-message-strategy.md +65 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/react-hook-form/references/valid-inline-vs-resolver.md +63 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/react-hook-form/references/valid-native-validation.md +60 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/react-hook-form/references/valid-resolver-caching.md +58 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/recharts/SKILL.md +713 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/recharts/references/api_reference.md +1121 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/recharts/references/best_practices.md +782 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/recharts/references/examples.md +940 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/tanstack-query-best-practices/SKILL.md +114 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/tanstack-query-best-practices/rules/cache-gc-time.md +93 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/tanstack-query-best-practices/rules/cache-invalidation.md +116 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/tanstack-query-best-practices/rules/cache-placeholder-vs-initial.md +156 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/tanstack-query-best-practices/rules/cache-stale-time.md +80 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/tanstack-query-best-practices/rules/err-error-boundaries.md +150 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/tanstack-query-best-practices/rules/inf-page-params.md +132 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/tanstack-query-best-practices/rules/mut-invalidate-queries.md +118 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/tanstack-query-best-practices/rules/mut-mutation-state.md +169 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/tanstack-query-best-practices/rules/mut-optimistic-updates.md +137 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/tanstack-query-best-practices/rules/network-mode.md +179 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/tanstack-query-best-practices/rules/parallel-use-queries.md +152 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/tanstack-query-best-practices/rules/perf-select-transform.md +144 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/tanstack-query-best-practices/rules/persist-queries.md +194 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/tanstack-query-best-practices/rules/pf-intent-prefetch.md +143 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/tanstack-query-best-practices/rules/qk-array-structure.md +50 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/tanstack-query-best-practices/rules/qk-factory-pattern.md +102 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/tanstack-query-best-practices/rules/qk-hierarchical-organization.md +76 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/tanstack-query-best-practices/rules/qk-include-dependencies.md +62 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/tanstack-query-best-practices/rules/qk-serializable.md +93 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/tanstack-query-best-practices/rules/query-cancellation.md +171 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/tanstack-query-best-practices/rules/ssr-dehydration.md +158 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/tanstack-table/SKILL.md +582 -0
- package/dist/templates/frontend/react-ssr/.cursor/skills/zod-4/SKILL.md +216 -0
- package/dist/templates/frontend/react-ssr/.dockerignore +14 -0
- package/dist/templates/frontend/react-ssr/.env.example +9 -0
- package/dist/templates/frontend/react-ssr/.husky/pre-commit +1 -0
- package/dist/templates/frontend/react-ssr/Dockerfile +41 -0
- package/dist/templates/frontend/react-ssr/README.md +121 -0
- package/dist/templates/frontend/react-ssr/components.json +22 -0
- package/dist/templates/frontend/react-ssr/docker-compose.yml +21 -0
- package/dist/templates/frontend/react-ssr/eslint.config.mjs +26 -0
- package/dist/templates/frontend/react-ssr/next.config.ts +7 -0
- package/dist/templates/frontend/react-ssr/package.json +86 -0
- package/dist/templates/frontend/react-ssr/postcss.config.mjs +5 -0
- package/dist/templates/frontend/react-ssr/prisma/schema.prisma +75 -0
- package/dist/templates/frontend/react-ssr/prisma/seed.ts +109 -0
- package/dist/templates/frontend/react-ssr/prisma.config.ts +17 -0
- package/dist/templates/frontend/react-ssr/skills-lock.json +65 -0
- package/dist/templates/frontend/react-ssr/src/__tests__/components/ui/badge.test.tsx +26 -0
- package/dist/templates/frontend/react-ssr/src/__tests__/components/ui/button.test.tsx +38 -0
- package/dist/templates/frontend/react-ssr/src/__tests__/components/ui/card.test.tsx +39 -0
- package/dist/templates/frontend/react-ssr/src/__tests__/components/ui/input.test.tsx +32 -0
- package/dist/templates/frontend/react-ssr/src/__tests__/hooks/useLocalStorage.test.ts +53 -0
- package/dist/templates/frontend/react-ssr/src/__tests__/lib/queryClient.test.ts +19 -0
- package/dist/templates/frontend/react-ssr/src/__tests__/lib/utils.test.ts +24 -0
- package/dist/templates/frontend/react-ssr/src/actions/auth.ts +91 -0
- package/dist/templates/frontend/react-ssr/src/actions/contacto.ts +46 -0
- package/dist/templates/frontend/react-ssr/src/actions/proyectos.ts +159 -0
- package/dist/templates/frontend/react-ssr/src/app/(authenticated)/dashboard/dashboard-client.tsx +321 -0
- package/dist/templates/frontend/react-ssr/src/app/(authenticated)/dashboard/page.tsx +48 -0
- package/dist/templates/frontend/react-ssr/src/app/(authenticated)/layout.tsx +34 -0
- package/dist/templates/frontend/react-ssr/src/app/(authenticated)/perfil/page.tsx +85 -0
- package/dist/templates/frontend/react-ssr/src/app/(authenticated)/proyectos-crud/page.tsx +23 -0
- package/dist/templates/frontend/react-ssr/src/app/(authenticated)/proyectos-crud/proyectos-crud-client.tsx +472 -0
- package/dist/templates/frontend/react-ssr/src/app/(authenticated)/ui-components/page.tsx +358 -0
- package/dist/templates/frontend/react-ssr/src/app/api/auth/[...nextauth]/route.ts +3 -0
- package/dist/templates/frontend/react-ssr/src/app/auth/iniciar-sesion/page.tsx +148 -0
- package/dist/templates/frontend/react-ssr/src/app/auth/recuperar-password/page.tsx +100 -0
- package/dist/templates/frontend/react-ssr/src/app/auth/registro/page.tsx +154 -0
- package/dist/templates/frontend/react-ssr/src/app/contacto/contacto-form.tsx +189 -0
- package/dist/templates/frontend/react-ssr/src/app/contacto/page.tsx +11 -0
- package/dist/templates/frontend/react-ssr/src/app/globals.css +99 -0
- package/dist/templates/frontend/react-ssr/src/app/layout.tsx +22 -0
- package/dist/templates/frontend/react-ssr/src/app/loading.tsx +7 -0
- package/dist/templates/frontend/react-ssr/src/app/not-found.tsx +14 -0
- package/dist/templates/frontend/react-ssr/src/app/page.tsx +331 -0
- package/dist/templates/frontend/react-ssr/src/app/proyectos/page.tsx +178 -0
- package/dist/templates/frontend/react-ssr/src/auth.ts +64 -0
- package/dist/templates/frontend/react-ssr/src/components/layout/navbar.tsx +68 -0
- package/dist/templates/frontend/react-ssr/src/components/layout/sidebar.tsx +109 -0
- package/dist/templates/frontend/react-ssr/src/components/layout/sign-out-button.tsx +16 -0
- package/dist/templates/frontend/react-ssr/src/components/providers.tsx +33 -0
- package/dist/templates/frontend/react-ssr/src/components/ui/avatar.tsx +53 -0
- package/dist/templates/frontend/react-ssr/src/components/ui/badge.tsx +42 -0
- package/dist/templates/frontend/react-ssr/src/components/ui/breadcrumb.tsx +114 -0
- package/dist/templates/frontend/react-ssr/src/components/ui/button.tsx +58 -0
- package/dist/templates/frontend/react-ssr/src/components/ui/card.tsx +95 -0
- package/dist/templates/frontend/react-ssr/src/components/ui/dialog.tsx +136 -0
- package/dist/templates/frontend/react-ssr/src/components/ui/form.tsx +168 -0
- package/dist/templates/frontend/react-ssr/src/components/ui/input.tsx +22 -0
- package/dist/templates/frontend/react-ssr/src/components/ui/label.tsx +26 -0
- package/dist/templates/frontend/react-ssr/src/components/ui/password-input.tsx +43 -0
- package/dist/templates/frontend/react-ssr/src/components/ui/separator.tsx +30 -0
- package/dist/templates/frontend/react-ssr/src/components/ui/table.tsx +240 -0
- package/dist/templates/frontend/react-ssr/src/components/ui/tabs.tsx +76 -0
- package/dist/templates/frontend/react-ssr/src/components/ui/textarea.tsx +21 -0
- package/dist/templates/frontend/react-ssr/src/data/dashboard.ts +179 -0
- package/dist/templates/frontend/react-ssr/src/hooks/useLocalStorage.ts +38 -0
- package/dist/templates/frontend/react-ssr/src/lib/prisma.ts +24 -0
- package/dist/templates/frontend/react-ssr/src/lib/queryClient.ts +25 -0
- package/dist/templates/frontend/react-ssr/src/lib/utils.ts +6 -0
- package/dist/templates/frontend/react-ssr/src/proxy.ts +31 -0
- package/dist/templates/frontend/react-ssr/src/test/mocks/next-navigation.ts +16 -0
- package/dist/templates/frontend/react-ssr/src/test/setup.ts +1 -0
- package/dist/templates/frontend/react-ssr/src/test/utils.tsx +30 -0
- package/dist/templates/frontend/react-ssr/src/types/index.ts +36 -0
- package/dist/templates/frontend/react-ssr/tsconfig.json +41 -0
- package/dist/templates/frontend/react-ssr/vitest.config.ts +41 -0
- package/package.json +1 -1
- package/templates/frontend/react-ssr/.cursor/agents/accessibility-reviewer.md +22 -0
- package/templates/frontend/react-ssr/.cursor/agents/nextjs-code-reviewer.md +24 -0
- package/templates/frontend/react-ssr/.cursor/agents/react-test-expert.md +32 -0
- package/templates/frontend/react-ssr/.cursor/agents/security-auditor.md +25 -0
- package/templates/frontend/react-ssr/.cursor/commands/new-component.md +97 -0
- package/templates/frontend/react-ssr/.cursor/commands/new-page.md +95 -0
- package/templates/frontend/react-ssr/.cursor/commands/new-prisma-model.md +66 -0
- package/templates/frontend/react-ssr/.cursor/commands/new-server-action.md +89 -0
- package/templates/frontend/react-ssr/.cursor/hooks/auto-format.ts +64 -0
- package/templates/frontend/react-ssr/.cursor/hooks/auto-test-on-stop.ts +94 -0
- package/templates/frontend/react-ssr/.cursor/hooks/block-dangerous-commands.ts +120 -0
- package/templates/frontend/react-ssr/.cursor/hooks/ensure-tests-exist.ts +209 -0
- package/templates/frontend/react-ssr/.cursor/hooks/protect-sensitive-files.ts +101 -0
- package/templates/frontend/react-ssr/.cursor/hooks/session-context.ts +93 -0
- package/templates/frontend/react-ssr/.cursor/hooks/tsconfig.json +10 -0
- package/templates/frontend/react-ssr/.cursor/hooks.json +41 -0
- package/templates/frontend/react-ssr/.cursor/rules/auth-patterns.mdc +48 -0
- package/templates/frontend/react-ssr/.cursor/rules/code-quality.mdc +39 -0
- package/templates/frontend/react-ssr/.cursor/rules/naming-conventions.mdc +32 -0
- package/templates/frontend/react-ssr/.cursor/rules/nextjs-architecture.mdc +51 -0
- package/templates/frontend/react-ssr/.cursor/rules/prisma-standards.mdc +53 -0
- package/templates/frontend/react-ssr/.cursor/rules/react-conventions.mdc +52 -0
- package/templates/frontend/react-ssr/.cursor/rules/testing-conventions.mdc +53 -0
- package/templates/frontend/react-ssr/.cursor/rules/ui-stack.mdc +47 -0
- package/templates/frontend/react-ssr/.cursor/skills/authjs-skills/SKILL.md +1149 -0
- package/templates/frontend/react-ssr/.cursor/skills/daisyui-5/SKILL.md +189 -0
- package/templates/frontend/react-ssr/.cursor/skills/daisyui-5/daisyUI5.skill +0 -0
- package/templates/frontend/react-ssr/.cursor/skills/daisyui-5/references/creating-components.md +412 -0
- package/templates/frontend/react-ssr/.cursor/skills/daisyui-5/references/data-display.md +341 -0
- package/templates/frontend/react-ssr/.cursor/skills/daisyui-5/references/feedback.md +240 -0
- package/templates/frontend/react-ssr/.cursor/skills/daisyui-5/references/input.md +283 -0
- package/templates/frontend/react-ssr/.cursor/skills/daisyui-5/references/layout.md +275 -0
- package/templates/frontend/react-ssr/.cursor/skills/daisyui-5/references/navigation.md +338 -0
- package/templates/frontend/react-ssr/.cursor/skills/daisyui-5/scripts/daisy-meta.ts +220 -0
- package/templates/frontend/react-ssr/.cursor/skills/daisyui-5/scripts/generate-daisy-safelist.ts +152 -0
- package/templates/frontend/react-ssr/.cursor/skills/docker-expert/SKILL.md +413 -0
- package/templates/frontend/react-ssr/.cursor/skills/nextjs-app-router-patterns/SKILL.md +537 -0
- package/templates/frontend/react-ssr/.cursor/skills/prisma-cli/SKILL.md +243 -0
- package/templates/frontend/react-ssr/.cursor/skills/prisma-cli/references/db-execute.md +75 -0
- package/templates/frontend/react-ssr/.cursor/skills/prisma-cli/references/db-pull.md +185 -0
- package/templates/frontend/react-ssr/.cursor/skills/prisma-cli/references/db-push.md +148 -0
- package/templates/frontend/react-ssr/.cursor/skills/prisma-cli/references/db-seed.md +191 -0
- package/templates/frontend/react-ssr/.cursor/skills/prisma-cli/references/debug.md +46 -0
- package/templates/frontend/react-ssr/.cursor/skills/prisma-cli/references/dev.md +157 -0
- package/templates/frontend/react-ssr/.cursor/skills/prisma-cli/references/format.md +48 -0
- package/templates/frontend/react-ssr/.cursor/skills/prisma-cli/references/generate.md +147 -0
- package/templates/frontend/react-ssr/.cursor/skills/prisma-cli/references/init.md +118 -0
- package/templates/frontend/react-ssr/.cursor/skills/prisma-cli/references/migrate-deploy.md +127 -0
- package/templates/frontend/react-ssr/.cursor/skills/prisma-cli/references/migrate-dev.md +143 -0
- package/templates/frontend/react-ssr/.cursor/skills/prisma-cli/references/migrate-diff.md +89 -0
- package/templates/frontend/react-ssr/.cursor/skills/prisma-cli/references/migrate-reset.md +72 -0
- package/templates/frontend/react-ssr/.cursor/skills/prisma-cli/references/migrate-resolve.md +57 -0
- package/templates/frontend/react-ssr/.cursor/skills/prisma-cli/references/migrate-status.md +65 -0
- package/templates/frontend/react-ssr/.cursor/skills/prisma-cli/references/studio.md +122 -0
- package/templates/frontend/react-ssr/.cursor/skills/prisma-cli/references/validate.md +53 -0
- package/templates/frontend/react-ssr/.cursor/skills/prisma-client-api/SKILL.md +216 -0
- package/templates/frontend/react-ssr/.cursor/skills/prisma-client-api/references/client-methods.md +221 -0
- package/templates/frontend/react-ssr/.cursor/skills/prisma-client-api/references/constructor.md +185 -0
- package/templates/frontend/react-ssr/.cursor/skills/prisma-client-api/references/filters.md +256 -0
- package/templates/frontend/react-ssr/.cursor/skills/prisma-client-api/references/model-queries.md +281 -0
- package/templates/frontend/react-ssr/.cursor/skills/prisma-client-api/references/query-options.md +276 -0
- package/templates/frontend/react-ssr/.cursor/skills/prisma-client-api/references/raw-queries.md +194 -0
- package/templates/frontend/react-ssr/.cursor/skills/prisma-client-api/references/relations.md +308 -0
- package/templates/frontend/react-ssr/.cursor/skills/prisma-client-api/references/transactions.md +184 -0
- package/templates/frontend/react-ssr/.cursor/skills/react-hook-form/AGENTS.md +97 -0
- package/templates/frontend/react-ssr/.cursor/skills/react-hook-form/README.md +138 -0
- package/templates/frontend/react-ssr/.cursor/skills/react-hook-form/SKILL.md +116 -0
- package/templates/frontend/react-ssr/.cursor/skills/react-hook-form/assets/templates/_template.md +26 -0
- package/templates/frontend/react-ssr/.cursor/skills/react-hook-form/references/_sections.md +46 -0
- package/templates/frontend/react-ssr/.cursor/skills/react-hook-form/references/adv-devtools-performance.md +69 -0
- package/templates/frontend/react-ssr/.cursor/skills/react-hook-form/references/adv-formprovider-memo.md +78 -0
- package/templates/frontend/react-ssr/.cursor/skills/react-hook-form/references/adv-testing-wrapper.md +63 -0
- package/templates/frontend/react-ssr/.cursor/skills/react-hook-form/references/array-complete-default-objects.md +66 -0
- package/templates/frontend/react-ssr/.cursor/skills/react-hook-form/references/array-separate-crud-operations.md +76 -0
- package/templates/frontend/react-ssr/.cursor/skills/react-hook-form/references/array-unique-fieldarray-per-name.md +58 -0
- package/templates/frontend/react-ssr/.cursor/skills/react-hook-form/references/array-use-field-id-as-key.md +54 -0
- package/templates/frontend/react-ssr/.cursor/skills/react-hook-form/references/array-virtualization-formprovider.md +64 -0
- package/templates/frontend/react-ssr/.cursor/skills/react-hook-form/references/ctrl-avoid-double-registration.md +46 -0
- package/templates/frontend/react-ssr/.cursor/skills/react-hook-form/references/ctrl-controller-field-props.md +56 -0
- package/templates/frontend/react-ssr/.cursor/skills/react-hook-form/references/ctrl-local-state-combination.md +69 -0
- package/templates/frontend/react-ssr/.cursor/skills/react-hook-form/references/ctrl-single-usecontroller-per-component.md +62 -0
- package/templates/frontend/react-ssr/.cursor/skills/react-hook-form/references/ctrl-usecontroller-isolation.md +64 -0
- package/templates/frontend/react-ssr/.cursor/skills/react-hook-form/references/formcfg-async-default-values.md +69 -0
- package/templates/frontend/react-ssr/.cursor/skills/react-hook-form/references/formcfg-default-values.md +57 -0
- package/templates/frontend/react-ssr/.cursor/skills/react-hook-form/references/formcfg-revalidate-mode.md +48 -0
- package/templates/frontend/react-ssr/.cursor/skills/react-hook-form/references/formcfg-should-unregister.md +62 -0
- package/templates/frontend/react-ssr/.cursor/skills/react-hook-form/references/formcfg-useeffect-dependency.md +54 -0
- package/templates/frontend/react-ssr/.cursor/skills/react-hook-form/references/formcfg-validation-mode.md +51 -0
- package/templates/frontend/react-ssr/.cursor/skills/react-hook-form/references/formstate-avoid-isvalid-with-onsubmit.md +58 -0
- package/templates/frontend/react-ssr/.cursor/skills/react-hook-form/references/formstate-destructure-formstate.md +48 -0
- package/templates/frontend/react-ssr/.cursor/skills/react-hook-form/references/formstate-getfieldstate-for-single-field.md +49 -0
- package/templates/frontend/react-ssr/.cursor/skills/react-hook-form/references/formstate-subscribe-to-specific-fields.md +54 -0
- package/templates/frontend/react-ssr/.cursor/skills/react-hook-form/references/formstate-useformstate-isolation.md +62 -0
- package/templates/frontend/react-ssr/.cursor/skills/react-hook-form/references/integ-mui-controller-pattern.md +59 -0
- package/templates/frontend/react-ssr/.cursor/skills/react-hook-form/references/integ-shadcn-form-import.md +64 -0
- package/templates/frontend/react-ssr/.cursor/skills/react-hook-form/references/integ-shadcn-select-wiring.md +64 -0
- package/templates/frontend/react-ssr/.cursor/skills/react-hook-form/references/integ-value-transform.md +59 -0
- package/templates/frontend/react-ssr/.cursor/skills/react-hook-form/references/sub-avoid-watch-in-render.md +48 -0
- package/templates/frontend/react-ssr/.cursor/skills/react-hook-form/references/sub-deep-subscription.md +62 -0
- package/templates/frontend/react-ssr/.cursor/skills/react-hook-form/references/sub-useformcontext-sparingly.md +58 -0
- package/templates/frontend/react-ssr/.cursor/skills/react-hook-form/references/sub-usewatch-default-value.md +50 -0
- package/templates/frontend/react-ssr/.cursor/skills/react-hook-form/references/sub-usewatch-over-watch.md +58 -0
- package/templates/frontend/react-ssr/.cursor/skills/react-hook-form/references/sub-usewatch-with-getvalues.md +54 -0
- package/templates/frontend/react-ssr/.cursor/skills/react-hook-form/references/sub-watch-specific-fields.md +54 -0
- package/templates/frontend/react-ssr/.cursor/skills/react-hook-form/references/valid-delay-error.md +52 -0
- package/templates/frontend/react-ssr/.cursor/skills/react-hook-form/references/valid-dynamic-schema-factory.md +57 -0
- package/templates/frontend/react-ssr/.cursor/skills/react-hook-form/references/valid-error-message-strategy.md +65 -0
- package/templates/frontend/react-ssr/.cursor/skills/react-hook-form/references/valid-inline-vs-resolver.md +63 -0
- package/templates/frontend/react-ssr/.cursor/skills/react-hook-form/references/valid-native-validation.md +60 -0
- package/templates/frontend/react-ssr/.cursor/skills/react-hook-form/references/valid-resolver-caching.md +58 -0
- package/templates/frontend/react-ssr/.cursor/skills/recharts/SKILL.md +713 -0
- package/templates/frontend/react-ssr/.cursor/skills/recharts/references/api_reference.md +1121 -0
- package/templates/frontend/react-ssr/.cursor/skills/recharts/references/best_practices.md +782 -0
- package/templates/frontend/react-ssr/.cursor/skills/recharts/references/examples.md +940 -0
- package/templates/frontend/react-ssr/.cursor/skills/tanstack-query-best-practices/SKILL.md +114 -0
- package/templates/frontend/react-ssr/.cursor/skills/tanstack-query-best-practices/rules/cache-gc-time.md +93 -0
- package/templates/frontend/react-ssr/.cursor/skills/tanstack-query-best-practices/rules/cache-invalidation.md +116 -0
- package/templates/frontend/react-ssr/.cursor/skills/tanstack-query-best-practices/rules/cache-placeholder-vs-initial.md +156 -0
- package/templates/frontend/react-ssr/.cursor/skills/tanstack-query-best-practices/rules/cache-stale-time.md +80 -0
- package/templates/frontend/react-ssr/.cursor/skills/tanstack-query-best-practices/rules/err-error-boundaries.md +150 -0
- package/templates/frontend/react-ssr/.cursor/skills/tanstack-query-best-practices/rules/inf-page-params.md +132 -0
- package/templates/frontend/react-ssr/.cursor/skills/tanstack-query-best-practices/rules/mut-invalidate-queries.md +118 -0
- package/templates/frontend/react-ssr/.cursor/skills/tanstack-query-best-practices/rules/mut-mutation-state.md +169 -0
- package/templates/frontend/react-ssr/.cursor/skills/tanstack-query-best-practices/rules/mut-optimistic-updates.md +137 -0
- package/templates/frontend/react-ssr/.cursor/skills/tanstack-query-best-practices/rules/network-mode.md +179 -0
- package/templates/frontend/react-ssr/.cursor/skills/tanstack-query-best-practices/rules/parallel-use-queries.md +152 -0
- package/templates/frontend/react-ssr/.cursor/skills/tanstack-query-best-practices/rules/perf-select-transform.md +144 -0
- package/templates/frontend/react-ssr/.cursor/skills/tanstack-query-best-practices/rules/persist-queries.md +194 -0
- package/templates/frontend/react-ssr/.cursor/skills/tanstack-query-best-practices/rules/pf-intent-prefetch.md +143 -0
- package/templates/frontend/react-ssr/.cursor/skills/tanstack-query-best-practices/rules/qk-array-structure.md +50 -0
- package/templates/frontend/react-ssr/.cursor/skills/tanstack-query-best-practices/rules/qk-factory-pattern.md +102 -0
- package/templates/frontend/react-ssr/.cursor/skills/tanstack-query-best-practices/rules/qk-hierarchical-organization.md +76 -0
- package/templates/frontend/react-ssr/.cursor/skills/tanstack-query-best-practices/rules/qk-include-dependencies.md +62 -0
- package/templates/frontend/react-ssr/.cursor/skills/tanstack-query-best-practices/rules/qk-serializable.md +93 -0
- package/templates/frontend/react-ssr/.cursor/skills/tanstack-query-best-practices/rules/query-cancellation.md +171 -0
- package/templates/frontend/react-ssr/.cursor/skills/tanstack-query-best-practices/rules/ssr-dehydration.md +158 -0
- package/templates/frontend/react-ssr/.cursor/skills/tanstack-table/SKILL.md +582 -0
- package/templates/frontend/react-ssr/.cursor/skills/zod-4/SKILL.md +216 -0
- package/templates/frontend/react-ssr/.dockerignore +14 -0
- package/templates/frontend/react-ssr/.env.example +9 -0
- package/templates/frontend/react-ssr/.husky/pre-commit +1 -0
- package/templates/frontend/react-ssr/Dockerfile +41 -0
- package/templates/frontend/react-ssr/README.md +121 -0
- package/templates/frontend/react-ssr/components.json +22 -0
- package/templates/frontend/react-ssr/docker-compose.yml +21 -0
- package/templates/frontend/react-ssr/eslint.config.mjs +26 -0
- package/templates/frontend/react-ssr/next.config.ts +7 -0
- package/templates/frontend/react-ssr/package.json +86 -0
- package/templates/frontend/react-ssr/postcss.config.mjs +5 -0
- package/templates/frontend/react-ssr/prisma/schema.prisma +75 -0
- package/templates/frontend/react-ssr/prisma/seed.ts +109 -0
- package/templates/frontend/react-ssr/prisma.config.ts +17 -0
- package/templates/frontend/react-ssr/skills-lock.json +65 -0
- package/templates/frontend/react-ssr/src/__tests__/components/ui/badge.test.tsx +26 -0
- package/templates/frontend/react-ssr/src/__tests__/components/ui/button.test.tsx +38 -0
- package/templates/frontend/react-ssr/src/__tests__/components/ui/card.test.tsx +39 -0
- package/templates/frontend/react-ssr/src/__tests__/components/ui/input.test.tsx +32 -0
- package/templates/frontend/react-ssr/src/__tests__/hooks/useLocalStorage.test.ts +53 -0
- package/templates/frontend/react-ssr/src/__tests__/lib/queryClient.test.ts +19 -0
- package/templates/frontend/react-ssr/src/__tests__/lib/utils.test.ts +24 -0
- package/templates/frontend/react-ssr/src/actions/auth.ts +91 -0
- package/templates/frontend/react-ssr/src/actions/contacto.ts +46 -0
- package/templates/frontend/react-ssr/src/actions/proyectos.ts +159 -0
- package/templates/frontend/react-ssr/src/app/(authenticated)/dashboard/dashboard-client.tsx +321 -0
- package/templates/frontend/react-ssr/src/app/(authenticated)/dashboard/page.tsx +48 -0
- package/templates/frontend/react-ssr/src/app/(authenticated)/layout.tsx +34 -0
- package/templates/frontend/react-ssr/src/app/(authenticated)/perfil/page.tsx +85 -0
- package/templates/frontend/react-ssr/src/app/(authenticated)/proyectos-crud/page.tsx +23 -0
- package/templates/frontend/react-ssr/src/app/(authenticated)/proyectos-crud/proyectos-crud-client.tsx +472 -0
- package/templates/frontend/react-ssr/src/app/(authenticated)/ui-components/page.tsx +358 -0
- package/templates/frontend/react-ssr/src/app/api/auth/[...nextauth]/route.ts +3 -0
- package/templates/frontend/react-ssr/src/app/auth/iniciar-sesion/page.tsx +148 -0
- package/templates/frontend/react-ssr/src/app/auth/recuperar-password/page.tsx +100 -0
- package/templates/frontend/react-ssr/src/app/auth/registro/page.tsx +154 -0
- package/templates/frontend/react-ssr/src/app/contacto/contacto-form.tsx +189 -0
- package/templates/frontend/react-ssr/src/app/contacto/page.tsx +11 -0
- package/templates/frontend/react-ssr/src/app/globals.css +99 -0
- package/templates/frontend/react-ssr/src/app/layout.tsx +22 -0
- package/templates/frontend/react-ssr/src/app/loading.tsx +7 -0
- package/templates/frontend/react-ssr/src/app/not-found.tsx +14 -0
- package/templates/frontend/react-ssr/src/app/page.tsx +331 -0
- package/templates/frontend/react-ssr/src/app/proyectos/page.tsx +178 -0
- package/templates/frontend/react-ssr/src/auth.ts +64 -0
- package/templates/frontend/react-ssr/src/components/layout/navbar.tsx +68 -0
- package/templates/frontend/react-ssr/src/components/layout/sidebar.tsx +109 -0
- package/templates/frontend/react-ssr/src/components/layout/sign-out-button.tsx +16 -0
- package/templates/frontend/react-ssr/src/components/providers.tsx +33 -0
- package/templates/frontend/react-ssr/src/components/ui/avatar.tsx +53 -0
- package/templates/frontend/react-ssr/src/components/ui/badge.tsx +42 -0
- package/templates/frontend/react-ssr/src/components/ui/breadcrumb.tsx +114 -0
- package/templates/frontend/react-ssr/src/components/ui/button.tsx +58 -0
- package/templates/frontend/react-ssr/src/components/ui/card.tsx +95 -0
- package/templates/frontend/react-ssr/src/components/ui/dialog.tsx +136 -0
- package/templates/frontend/react-ssr/src/components/ui/form.tsx +168 -0
- package/templates/frontend/react-ssr/src/components/ui/input.tsx +22 -0
- package/templates/frontend/react-ssr/src/components/ui/label.tsx +26 -0
- package/templates/frontend/react-ssr/src/components/ui/password-input.tsx +43 -0
- package/templates/frontend/react-ssr/src/components/ui/separator.tsx +30 -0
- package/templates/frontend/react-ssr/src/components/ui/table.tsx +240 -0
- package/templates/frontend/react-ssr/src/components/ui/tabs.tsx +76 -0
- package/templates/frontend/react-ssr/src/components/ui/textarea.tsx +21 -0
- package/templates/frontend/react-ssr/src/data/dashboard.ts +179 -0
- package/templates/frontend/react-ssr/src/hooks/useLocalStorage.ts +38 -0
- package/templates/frontend/react-ssr/src/lib/prisma.ts +24 -0
- package/templates/frontend/react-ssr/src/lib/queryClient.ts +25 -0
- package/templates/frontend/react-ssr/src/lib/utils.ts +6 -0
- package/templates/frontend/react-ssr/src/proxy.ts +31 -0
- package/templates/frontend/react-ssr/src/test/mocks/next-navigation.ts +16 -0
- package/templates/frontend/react-ssr/src/test/setup.ts +1 -0
- package/templates/frontend/react-ssr/src/test/utils.tsx +30 -0
- package/templates/frontend/react-ssr/src/types/index.ts +36 -0
- package/templates/frontend/react-ssr/tsconfig.json +41 -0
- package/templates/frontend/react-ssr/vitest.config.ts +41 -0
|
@@ -0,0 +1,283 @@
|
|
|
1
|
+
# Input Components
|
|
2
|
+
|
|
3
|
+
## Table of Contents
|
|
4
|
+
- [Button](#button)
|
|
5
|
+
- [Calendar](#calendar)
|
|
6
|
+
- [Checkbox](#checkbox)
|
|
7
|
+
- [Fieldset](#fieldset)
|
|
8
|
+
- [File Input](#file-input)
|
|
9
|
+
- [Filter](#filter)
|
|
10
|
+
- [Input](#input)
|
|
11
|
+
- [Label](#label)
|
|
12
|
+
- [Radio](#radio)
|
|
13
|
+
- [Range](#range)
|
|
14
|
+
- [Rating](#rating)
|
|
15
|
+
- [Select](#select)
|
|
16
|
+
- [Textarea](#textarea)
|
|
17
|
+
- [Toggle](#toggle)
|
|
18
|
+
- [Validator](#validator)
|
|
19
|
+
|
|
20
|
+
---
|
|
21
|
+
|
|
22
|
+
## Button
|
|
23
|
+
|
|
24
|
+
**Classes:** `btn` | color: `btn-neutral`, `btn-primary`, `btn-secondary`, `btn-accent`, `btn-info`, `btn-success`, `btn-warning`, `btn-error` | style: `btn-outline`, `btn-dash`, `btn-soft`, `btn-ghost`, `btn-link` | behavior: `btn-active`, `btn-disabled` | size: `btn-xs`..`btn-xl` | modifier: `btn-wide`, `btn-block`, `btn-square`, `btn-circle`
|
|
25
|
+
|
|
26
|
+
```html
|
|
27
|
+
<button class="btn">Default</button>
|
|
28
|
+
<button class="btn btn-primary">Primary</button>
|
|
29
|
+
<button class="btn btn-outline btn-secondary">Outline</button>
|
|
30
|
+
<button class="btn btn-soft btn-error btn-sm">Small Error</button>
|
|
31
|
+
<button class="btn btn-circle btn-lg">+</button>
|
|
32
|
+
<button class="btn btn-block">Full Width</button>
|
|
33
|
+
<a class="btn btn-link">Link Style</a>
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
Works on `<button>`, `<a>`, `<input>`. Can include icons before/after text. For disabled via class: set `tabindex="-1" role="button" aria-disabled="true"`.
|
|
37
|
+
|
|
38
|
+
---
|
|
39
|
+
|
|
40
|
+
## Calendar
|
|
41
|
+
|
|
42
|
+
Styles for third-party calendar libraries.
|
|
43
|
+
|
|
44
|
+
**Classes:** `cally` (Cally web component), `pika-single` (Pikaday input), `react-day-picker` (React Day Picker)
|
|
45
|
+
|
|
46
|
+
```html
|
|
47
|
+
<!-- Cally web component -->
|
|
48
|
+
<calendar-date class="cally"><!-- content --></calendar-date>
|
|
49
|
+
|
|
50
|
+
<!-- Pikaday -->
|
|
51
|
+
<input type="text" class="input pika-single" />
|
|
52
|
+
|
|
53
|
+
<!-- React Day Picker -->
|
|
54
|
+
<DayPicker className="react-day-picker" />
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
Supported libraries: Cally, Pikaday, React Day Picker.
|
|
58
|
+
|
|
59
|
+
---
|
|
60
|
+
|
|
61
|
+
## Checkbox
|
|
62
|
+
|
|
63
|
+
**Classes:** `checkbox` | color: `checkbox-primary`, `checkbox-secondary`, `checkbox-accent`, `checkbox-neutral`, `checkbox-success`, `checkbox-warning`, `checkbox-info`, `checkbox-error` | size: `checkbox-xs`..`checkbox-xl`
|
|
64
|
+
|
|
65
|
+
```html
|
|
66
|
+
<label class="flex items-center gap-2">
|
|
67
|
+
<input type="checkbox" class="checkbox checkbox-primary" />
|
|
68
|
+
<span>Remember me</span>
|
|
69
|
+
</label>
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
---
|
|
73
|
+
|
|
74
|
+
## Fieldset
|
|
75
|
+
|
|
76
|
+
Container for grouping form elements with a legend and description.
|
|
77
|
+
|
|
78
|
+
**Classes:** `fieldset` | part: `fieldset-legend`, `label`
|
|
79
|
+
|
|
80
|
+
```html
|
|
81
|
+
<fieldset class="fieldset">
|
|
82
|
+
<legend class="fieldset-legend">Account Details</legend>
|
|
83
|
+
<input type="text" class="input" placeholder="Username" />
|
|
84
|
+
<p class="label">Choose a unique username</p>
|
|
85
|
+
<input type="email" class="input" placeholder="Email" />
|
|
86
|
+
<p class="label">We'll never share your email</p>
|
|
87
|
+
</fieldset>
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
---
|
|
91
|
+
|
|
92
|
+
## File Input
|
|
93
|
+
|
|
94
|
+
**Classes:** `file-input` | style: `file-input-ghost` | color: `file-input-neutral`, `file-input-primary`, `file-input-secondary`, `file-input-accent`, `file-input-info`, `file-input-success`, `file-input-warning`, `file-input-error` | size: `file-input-xs`..`file-input-xl`
|
|
95
|
+
|
|
96
|
+
```html
|
|
97
|
+
<input type="file" class="file-input file-input-primary file-input-md" />
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
---
|
|
101
|
+
|
|
102
|
+
## Filter
|
|
103
|
+
|
|
104
|
+
Group of radio buttons where selecting one hides the others and shows a reset button.
|
|
105
|
+
|
|
106
|
+
**Classes:** `filter` | part: `filter-reset`
|
|
107
|
+
|
|
108
|
+
```html
|
|
109
|
+
<!-- Using HTML form (preferred) -->
|
|
110
|
+
<form class="filter">
|
|
111
|
+
<input class="btn btn-square" type="reset" value="×" />
|
|
112
|
+
<input class="btn" type="radio" name="category" aria-label="All" />
|
|
113
|
+
<input class="btn" type="radio" name="category" aria-label="Design" />
|
|
114
|
+
<input class="btn" type="radio" name="category" aria-label="Code" />
|
|
115
|
+
</form>
|
|
116
|
+
|
|
117
|
+
<!-- Without form -->
|
|
118
|
+
<div class="filter">
|
|
119
|
+
<input class="btn filter-reset" type="radio" name="status" aria-label="×" />
|
|
120
|
+
<input class="btn" type="radio" name="status" aria-label="Active" />
|
|
121
|
+
<input class="btn" type="radio" name="status" aria-label="Archived" />
|
|
122
|
+
</div>
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
Use unique `name` per filter group. Prefer `<form>` tag.
|
|
126
|
+
|
|
127
|
+
---
|
|
128
|
+
|
|
129
|
+
## Input
|
|
130
|
+
|
|
131
|
+
**Classes:** `input` | style: `input-ghost` | color: `input-neutral`, `input-primary`, `input-secondary`, `input-accent`, `input-info`, `input-success`, `input-warning`, `input-error` | size: `input-xs`..`input-xl`
|
|
132
|
+
|
|
133
|
+
```html
|
|
134
|
+
<input type="text" placeholder="Type here" class="input input-primary" />
|
|
135
|
+
<input type="email" placeholder="Email" class="input input-md" />
|
|
136
|
+
|
|
137
|
+
<!-- Input with icon -->
|
|
138
|
+
<label class="input">
|
|
139
|
+
<svg><!-- icon --></svg>
|
|
140
|
+
<input type="text" placeholder="Search" />
|
|
141
|
+
</label>
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
Use `input` class on parent when it contains multiple elements (icon + input).
|
|
145
|
+
|
|
146
|
+
---
|
|
147
|
+
|
|
148
|
+
## Label
|
|
149
|
+
|
|
150
|
+
Provides name/title for input fields.
|
|
151
|
+
|
|
152
|
+
**Classes:** `label`, `floating-label`
|
|
153
|
+
|
|
154
|
+
```html
|
|
155
|
+
<!-- Regular label inside input wrapper -->
|
|
156
|
+
<label class="input">
|
|
157
|
+
<span class="label">Email</span>
|
|
158
|
+
<input type="email" placeholder="user@example.com" />
|
|
159
|
+
</label>
|
|
160
|
+
|
|
161
|
+
<!-- Floating label -->
|
|
162
|
+
<label class="floating-label">
|
|
163
|
+
<input type="text" placeholder="Name" class="input" />
|
|
164
|
+
<span>Name</span>
|
|
165
|
+
</label>
|
|
166
|
+
```
|
|
167
|
+
|
|
168
|
+
For floating labels, the `<span>` floats above the input when focused.
|
|
169
|
+
|
|
170
|
+
---
|
|
171
|
+
|
|
172
|
+
## Radio
|
|
173
|
+
|
|
174
|
+
**Classes:** `radio` | color: `radio-neutral`, `radio-primary`, `radio-secondary`, `radio-accent`, `radio-success`, `radio-warning`, `radio-info`, `radio-error` | size: `radio-xs`..`radio-xl`
|
|
175
|
+
|
|
176
|
+
```html
|
|
177
|
+
<label class="flex items-center gap-2">
|
|
178
|
+
<input type="radio" name="plan" class="radio radio-primary" checked />
|
|
179
|
+
<span>Free</span>
|
|
180
|
+
</label>
|
|
181
|
+
<label class="flex items-center gap-2">
|
|
182
|
+
<input type="radio" name="plan" class="radio radio-primary" />
|
|
183
|
+
<span>Pro</span>
|
|
184
|
+
</label>
|
|
185
|
+
```
|
|
186
|
+
|
|
187
|
+
Use unique `name` per radio group to avoid conflicts.
|
|
188
|
+
|
|
189
|
+
---
|
|
190
|
+
|
|
191
|
+
## Range
|
|
192
|
+
|
|
193
|
+
Slider for selecting a value.
|
|
194
|
+
|
|
195
|
+
**Classes:** `range` | color: `range-neutral`, `range-primary`, `range-secondary`, `range-accent`, `range-success`, `range-warning`, `range-info`, `range-error` | size: `range-xs`..`range-xl`
|
|
196
|
+
|
|
197
|
+
```html
|
|
198
|
+
<input type="range" min="0" max="100" value="40" class="range range-primary range-sm" />
|
|
199
|
+
```
|
|
200
|
+
|
|
201
|
+
`min` and `max` are required.
|
|
202
|
+
|
|
203
|
+
---
|
|
204
|
+
|
|
205
|
+
## Rating
|
|
206
|
+
|
|
207
|
+
Star rating using radio buttons.
|
|
208
|
+
|
|
209
|
+
**Classes:** `rating` | modifier: `rating-half`, `rating-hidden` | size: `rating-xs`..`rating-xl`
|
|
210
|
+
|
|
211
|
+
```html
|
|
212
|
+
<div class="rating rating-lg">
|
|
213
|
+
<input type="radio" name="rating-1" class="rating-hidden" />
|
|
214
|
+
<input type="radio" name="rating-1" class="mask mask-star-2 bg-orange-400" checked />
|
|
215
|
+
<input type="radio" name="rating-1" class="mask mask-star-2 bg-orange-400" />
|
|
216
|
+
<input type="radio" name="rating-1" class="mask mask-star-2 bg-orange-400" />
|
|
217
|
+
<input type="radio" name="rating-1" class="mask mask-star-2 bg-orange-400" />
|
|
218
|
+
<input type="radio" name="rating-1" class="mask mask-star-2 bg-orange-400" />
|
|
219
|
+
</div>
|
|
220
|
+
```
|
|
221
|
+
|
|
222
|
+
Use unique `name` per rating. First radio with `rating-hidden` allows clearing.
|
|
223
|
+
|
|
224
|
+
---
|
|
225
|
+
|
|
226
|
+
## Select
|
|
227
|
+
|
|
228
|
+
Dropdown selection.
|
|
229
|
+
|
|
230
|
+
**Classes:** `select` | style: `select-ghost` | color: `select-neutral`, `select-primary`, `select-secondary`, `select-accent`, `select-info`, `select-success`, `select-warning`, `select-error` | size: `select-xs`..`select-xl`
|
|
231
|
+
|
|
232
|
+
```html
|
|
233
|
+
<select class="select select-primary select-md">
|
|
234
|
+
<option disabled selected>Pick one</option>
|
|
235
|
+
<option>Option A</option>
|
|
236
|
+
<option>Option B</option>
|
|
237
|
+
</select>
|
|
238
|
+
```
|
|
239
|
+
|
|
240
|
+
---
|
|
241
|
+
|
|
242
|
+
## Textarea
|
|
243
|
+
|
|
244
|
+
Multi-line text input.
|
|
245
|
+
|
|
246
|
+
**Classes:** `textarea` | style: `textarea-ghost` | color: `textarea-neutral`, `textarea-primary`, `textarea-secondary`, `textarea-accent`, `textarea-info`, `textarea-success`, `textarea-warning`, `textarea-error` | size: `textarea-xs`..`textarea-xl`
|
|
247
|
+
|
|
248
|
+
```html
|
|
249
|
+
<textarea class="textarea textarea-primary" placeholder="Write your bio..."></textarea>
|
|
250
|
+
```
|
|
251
|
+
|
|
252
|
+
---
|
|
253
|
+
|
|
254
|
+
## Toggle
|
|
255
|
+
|
|
256
|
+
Switch-style checkbox.
|
|
257
|
+
|
|
258
|
+
**Classes:** `toggle` | color: `toggle-primary`, `toggle-secondary`, `toggle-accent`, `toggle-neutral`, `toggle-success`, `toggle-warning`, `toggle-info`, `toggle-error` | size: `toggle-xs`..`toggle-xl`
|
|
259
|
+
|
|
260
|
+
```html
|
|
261
|
+
<label class="flex items-center gap-2">
|
|
262
|
+
<input type="checkbox" class="toggle toggle-primary" />
|
|
263
|
+
<span>Dark mode</span>
|
|
264
|
+
</label>
|
|
265
|
+
```
|
|
266
|
+
|
|
267
|
+
---
|
|
268
|
+
|
|
269
|
+
## Validator
|
|
270
|
+
|
|
271
|
+
Changes form element color to error/success based on validation.
|
|
272
|
+
|
|
273
|
+
**Classes:** `validator` | part: `validator-hint`
|
|
274
|
+
|
|
275
|
+
```html
|
|
276
|
+
<input type="email" class="input validator" required placeholder="Email" />
|
|
277
|
+
<p class="validator-hint">Please enter a valid email</p>
|
|
278
|
+
|
|
279
|
+
<input type="text" class="input validator" required minlength="3" placeholder="Username" />
|
|
280
|
+
<p class="validator-hint">Must be at least 3 characters</p>
|
|
281
|
+
```
|
|
282
|
+
|
|
283
|
+
Works with `input`, `select`, `textarea`.
|
|
@@ -0,0 +1,275 @@
|
|
|
1
|
+
# Layout Components
|
|
2
|
+
|
|
3
|
+
## Table of Contents
|
|
4
|
+
- [Divider](#divider)
|
|
5
|
+
- [Dock](#dock)
|
|
6
|
+
- [Drawer](#drawer)
|
|
7
|
+
- [FAB](#fab)
|
|
8
|
+
- [Footer](#footer)
|
|
9
|
+
- [Hero](#hero)
|
|
10
|
+
- [Indicator](#indicator)
|
|
11
|
+
- [Join](#join)
|
|
12
|
+
- [Navbar](#navbar)
|
|
13
|
+
- [Stack](#stack)
|
|
14
|
+
|
|
15
|
+
---
|
|
16
|
+
|
|
17
|
+
## Divider
|
|
18
|
+
|
|
19
|
+
Separates content vertically or horizontally.
|
|
20
|
+
|
|
21
|
+
**Classes:** `divider` | color: `divider-neutral`, `divider-primary`, `divider-secondary`, `divider-accent`, `divider-success`, `divider-warning`, `divider-info`, `divider-error` | direction: `divider-vertical`, `divider-horizontal` | placement: `divider-start`, `divider-end`
|
|
22
|
+
|
|
23
|
+
```html
|
|
24
|
+
<div class="divider">OR</div>
|
|
25
|
+
<div class="divider divider-primary divider-horizontal">OR</div>
|
|
26
|
+
<div class="divider divider-start">Start</div>
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
Omit text for a blank divider.
|
|
30
|
+
|
|
31
|
+
---
|
|
32
|
+
|
|
33
|
+
## Dock
|
|
34
|
+
|
|
35
|
+
Bottom navigation bar that sticks to bottom of screen.
|
|
36
|
+
|
|
37
|
+
**Classes:** `dock` | part: `dock-label` | modifier: `dock-active` | size: `dock-xs`..`dock-xl`
|
|
38
|
+
|
|
39
|
+
```html
|
|
40
|
+
<div class="dock">
|
|
41
|
+
<button>
|
|
42
|
+
<svg><!-- icon --></svg>
|
|
43
|
+
<span class="dock-label">Home</span>
|
|
44
|
+
</button>
|
|
45
|
+
<button class="dock-active">
|
|
46
|
+
<svg><!-- icon --></svg>
|
|
47
|
+
<span class="dock-label">Search</span>
|
|
48
|
+
</button>
|
|
49
|
+
<button>
|
|
50
|
+
<svg><!-- icon --></svg>
|
|
51
|
+
<span class="dock-label">Profile</span>
|
|
52
|
+
</button>
|
|
53
|
+
</div>
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
Add `<meta name="viewport" content="viewport-fit=cover">` for iOS.
|
|
57
|
+
|
|
58
|
+
---
|
|
59
|
+
|
|
60
|
+
## Drawer
|
|
61
|
+
|
|
62
|
+
Grid layout that shows/hides a sidebar.
|
|
63
|
+
|
|
64
|
+
**Classes:** `drawer` | part: `drawer-toggle`, `drawer-content`, `drawer-side`, `drawer-overlay` | placement: `drawer-end` | modifier: `drawer-open` | variant: `is-drawer-open:`, `is-drawer-close:`
|
|
65
|
+
|
|
66
|
+
### Basic responsive drawer
|
|
67
|
+
```html
|
|
68
|
+
<div class="drawer lg:drawer-open">
|
|
69
|
+
<input id="my-drawer" type="checkbox" class="drawer-toggle" />
|
|
70
|
+
<div class="drawer-content">
|
|
71
|
+
<!-- Page content here -->
|
|
72
|
+
<label for="my-drawer" class="btn drawer-button lg:hidden">Open drawer</label>
|
|
73
|
+
</div>
|
|
74
|
+
<div class="drawer-side">
|
|
75
|
+
<label for="my-drawer" aria-label="close sidebar" class="drawer-overlay"></label>
|
|
76
|
+
<ul class="menu bg-base-200 min-h-full w-80 p-4">
|
|
77
|
+
<li><button>Sidebar Item 1</button></li>
|
|
78
|
+
<li><button>Sidebar Item 2</button></li>
|
|
79
|
+
</ul>
|
|
80
|
+
</div>
|
|
81
|
+
</div>
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
### Collapsible icon sidebar
|
|
85
|
+
```html
|
|
86
|
+
<div class="drawer lg:drawer-open">
|
|
87
|
+
<input id="my-drawer-4" type="checkbox" class="drawer-toggle" />
|
|
88
|
+
<div class="drawer-content">
|
|
89
|
+
<!-- Page content -->
|
|
90
|
+
</div>
|
|
91
|
+
<div class="drawer-side is-drawer-close:overflow-visible">
|
|
92
|
+
<label for="my-drawer-4" aria-label="close sidebar" class="drawer-overlay"></label>
|
|
93
|
+
<div class="is-drawer-close:w-14 is-drawer-open:w-64 bg-base-200 flex flex-col items-start min-h-full">
|
|
94
|
+
<ul class="menu w-full grow">
|
|
95
|
+
<li>
|
|
96
|
+
<button class="is-drawer-close:tooltip is-drawer-close:tooltip-right" data-tip="Home">
|
|
97
|
+
🏠 <span class="is-drawer-close:hidden">Homepage</span>
|
|
98
|
+
</button>
|
|
99
|
+
</li>
|
|
100
|
+
</ul>
|
|
101
|
+
<div class="m-2">
|
|
102
|
+
<label for="my-drawer-4" class="btn btn-ghost btn-circle drawer-button is-drawer-open:rotate-y-180">↔️</label>
|
|
103
|
+
</div>
|
|
104
|
+
</div>
|
|
105
|
+
</div>
|
|
106
|
+
</div>
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
**Rules:**
|
|
110
|
+
- Use unique `id` for each `drawer-toggle`
|
|
111
|
+
- `lg:drawer-open` makes sidebar visible on large screens
|
|
112
|
+
- All page content (navbar, footer) must be inside `drawer-content`
|
|
113
|
+
|
|
114
|
+
---
|
|
115
|
+
|
|
116
|
+
## FAB
|
|
117
|
+
|
|
118
|
+
Floating Action Button in bottom corner. Shows speed dial buttons on focus/hover.
|
|
119
|
+
|
|
120
|
+
**Classes:** `fab` | part: `fab-close`, `fab-main-action` | modifier: `fab-flower`
|
|
121
|
+
|
|
122
|
+
### Basic FAB
|
|
123
|
+
```html
|
|
124
|
+
<div class="fab">
|
|
125
|
+
<button class="btn btn-lg btn-circle btn-primary">+</button>
|
|
126
|
+
</div>
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
### Speed dial with labels
|
|
130
|
+
```html
|
|
131
|
+
<div class="fab">
|
|
132
|
+
<div tabindex="0" role="button" class="btn btn-lg btn-circle btn-primary">+</div>
|
|
133
|
+
<div>Edit <button class="btn btn-lg btn-circle">✏️</button></div>
|
|
134
|
+
<div>Share <button class="btn btn-lg btn-circle">📤</button></div>
|
|
135
|
+
<div>Delete <button class="btn btn-lg btn-circle">🗑️</button></div>
|
|
136
|
+
</div>
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
### Flower layout with tooltips
|
|
140
|
+
```html
|
|
141
|
+
<div class="fab fab-flower">
|
|
142
|
+
<div tabindex="0" role="button" class="btn btn-lg btn-circle btn-primary">+</div>
|
|
143
|
+
<button class="fab-main-action btn btn-circle btn-lg">⭐</button>
|
|
144
|
+
<div class="tooltip tooltip-left" data-tip="Edit">
|
|
145
|
+
<button class="btn btn-lg btn-circle">✏️</button>
|
|
146
|
+
</div>
|
|
147
|
+
<div class="tooltip tooltip-left" data-tip="Share">
|
|
148
|
+
<button class="btn btn-lg btn-circle">📤</button>
|
|
149
|
+
</div>
|
|
150
|
+
</div>
|
|
151
|
+
```
|
|
152
|
+
|
|
153
|
+
---
|
|
154
|
+
|
|
155
|
+
## Footer
|
|
156
|
+
|
|
157
|
+
Contains logo, copyright, and navigation links.
|
|
158
|
+
|
|
159
|
+
**Classes:** `footer` | part: `footer-title` | placement: `footer-center` | direction: `footer-horizontal`, `footer-vertical`
|
|
160
|
+
|
|
161
|
+
```html
|
|
162
|
+
<footer class="footer sm:footer-horizontal bg-base-200 p-10">
|
|
163
|
+
<nav>
|
|
164
|
+
<h6 class="footer-title">Services</h6>
|
|
165
|
+
<a class="link link-hover">Branding</a>
|
|
166
|
+
<a class="link link-hover">Design</a>
|
|
167
|
+
</nav>
|
|
168
|
+
<nav>
|
|
169
|
+
<h6 class="footer-title">Company</h6>
|
|
170
|
+
<a class="link link-hover">About us</a>
|
|
171
|
+
<a class="link link-hover">Contact</a>
|
|
172
|
+
</nav>
|
|
173
|
+
</footer>
|
|
174
|
+
```
|
|
175
|
+
|
|
176
|
+
Use `sm:footer-horizontal` for responsive layout. Use `base-200` background.
|
|
177
|
+
|
|
178
|
+
---
|
|
179
|
+
|
|
180
|
+
## Hero
|
|
181
|
+
|
|
182
|
+
Large box/image with title and description.
|
|
183
|
+
|
|
184
|
+
**Classes:** `hero` | part: `hero-content`, `hero-overlay`
|
|
185
|
+
|
|
186
|
+
```html
|
|
187
|
+
<div class="hero min-h-screen" style="background-image: url(https://picsum.photos/1600/900);">
|
|
188
|
+
<div class="hero-overlay"></div>
|
|
189
|
+
<div class="hero-content text-center">
|
|
190
|
+
<div class="max-w-md">
|
|
191
|
+
<h1 class="text-5xl font-bold">Hello</h1>
|
|
192
|
+
<p class="py-6">Description text here.</p>
|
|
193
|
+
<button class="btn btn-primary">Get Started</button>
|
|
194
|
+
</div>
|
|
195
|
+
</div>
|
|
196
|
+
</div>
|
|
197
|
+
```
|
|
198
|
+
|
|
199
|
+
---
|
|
200
|
+
|
|
201
|
+
## Indicator
|
|
202
|
+
|
|
203
|
+
Places an element on the corner of another element.
|
|
204
|
+
|
|
205
|
+
**Classes:** `indicator` | part: `indicator-item` | placement: `indicator-start`, `indicator-center`, `indicator-end`, `indicator-top`, `indicator-middle`, `indicator-bottom`
|
|
206
|
+
|
|
207
|
+
```html
|
|
208
|
+
<div class="indicator">
|
|
209
|
+
<span class="indicator-item badge badge-primary">99+</span>
|
|
210
|
+
<button class="btn">Inbox</button>
|
|
211
|
+
</div>
|
|
212
|
+
```
|
|
213
|
+
|
|
214
|
+
Default placement is `indicator-end indicator-top`. Place all `indicator-item` elements before the main content.
|
|
215
|
+
|
|
216
|
+
---
|
|
217
|
+
|
|
218
|
+
## Join
|
|
219
|
+
|
|
220
|
+
Groups multiple items with shared border radius.
|
|
221
|
+
|
|
222
|
+
**Classes:** `join`, `join-item` | direction: `join-vertical`, `join-horizontal`
|
|
223
|
+
|
|
224
|
+
```html
|
|
225
|
+
<div class="join">
|
|
226
|
+
<button class="btn join-item">Left</button>
|
|
227
|
+
<button class="btn join-item">Center</button>
|
|
228
|
+
<button class="btn join-item">Right</button>
|
|
229
|
+
</div>
|
|
230
|
+
```
|
|
231
|
+
|
|
232
|
+
Use `lg:join-horizontal` for responsive layouts.
|
|
233
|
+
|
|
234
|
+
---
|
|
235
|
+
|
|
236
|
+
## Navbar
|
|
237
|
+
|
|
238
|
+
Top navigation bar.
|
|
239
|
+
|
|
240
|
+
**Classes:** `navbar` | part: `navbar-start`, `navbar-center`, `navbar-end`
|
|
241
|
+
|
|
242
|
+
```html
|
|
243
|
+
<div class="navbar bg-base-200">
|
|
244
|
+
<div class="navbar-start">
|
|
245
|
+
<a class="btn btn-ghost text-xl">Logo</a>
|
|
246
|
+
</div>
|
|
247
|
+
<div class="navbar-center">
|
|
248
|
+
<ul class="menu menu-horizontal px-1">
|
|
249
|
+
<li><a>Link 1</a></li>
|
|
250
|
+
<li><a>Link 2</a></li>
|
|
251
|
+
</ul>
|
|
252
|
+
</div>
|
|
253
|
+
<div class="navbar-end">
|
|
254
|
+
<button class="btn btn-primary">Action</button>
|
|
255
|
+
</div>
|
|
256
|
+
</div>
|
|
257
|
+
```
|
|
258
|
+
|
|
259
|
+
Use `base-200` background.
|
|
260
|
+
|
|
261
|
+
---
|
|
262
|
+
|
|
263
|
+
## Stack
|
|
264
|
+
|
|
265
|
+
Visually stacks elements on top of each other.
|
|
266
|
+
|
|
267
|
+
**Classes:** `stack` | modifier: `stack-top`, `stack-bottom`, `stack-start`, `stack-end`
|
|
268
|
+
|
|
269
|
+
```html
|
|
270
|
+
<div class="stack w-64">
|
|
271
|
+
<div class="card bg-primary text-primary-content"><div class="card-body">Card 1</div></div>
|
|
272
|
+
<div class="card bg-secondary text-secondary-content"><div class="card-body">Card 2</div></div>
|
|
273
|
+
<div class="card bg-accent text-accent-content"><div class="card-body">Card 3</div></div>
|
|
274
|
+
</div>
|
|
275
|
+
```
|