2025-10-08 21:58:17 +05:30
2025-08-16 09:52:47 +05:30
2025-08-16 09:52:47 +05:30
2025-10-08 10:22:00 +05:30
2025-10-08 21:58:17 +05:30
2025-08-16 09:52:47 +05:30
2025-09-10 17:58:07 +05:30
2025-08-16 09:58:40 +05:30
2025-10-08 13:35:54 +05:30
2025-10-08 13:35:54 +05:30
2025-08-16 09:52:47 +05:30

@wrnexus/astro

Form + field components for Astro with Tailwind utilities and Zod-ready validation hooks.

  • <Form /> — submit handling + client validation plumbing
  • <Field /> — text/email/password/number/textarea/select/date/time/file/checkbox/radio/switch
  • <MultiSelect /> — searchable, checkbox-driven multi select dropdown
  • <Button /> helpers
  • 🎯 Works with your Tailwind tokens (e.g., bg-primary, text-foreground, border-border)
  • 🧪 Zod integration: pass schemaName to <Form /> and expose a schema as window[schemaName]

Installation

pnpm add @wrnexus/astro
# or
npm i @wrnexus/astro

Install All Required packages

npm install tailwind-merge clsx class-variance-authority  @tailwindcss/forms zod --save-dev

Theme Use

@import "@wrnexus/astro/style.css";

@import "tailwindcss";

@theme {
    --color-primary: hsl(var(--primary));
    --color-primary-foreground: hsl(var(--primary-foreground));
    --color-secondary: hsl(var(--secondary));
    --color-secondary-foreground: hsl(var(--secondary-foreground));
    --color-tertiary: hsl(var(--tertiary));
    --color-tertiary-foreground: hsl(var(--tertiary-foreground));
    --color-accent: hsl(var(--accent));
    --color-accent-foreground: hsl(var(--accent-foreground));
    --color-info: hsl(var(--info));
    --color-info-foreground: hsl(var(--info-foreground));
    --color-success: hsl(var(--success));
    --color-success-foreground: hsl(var(--success-foreground));
    --color-warning: hsl(var(--warning));
    --color-warning-foreground: hsl(var(--warning-foreground));
    --color-danger: hsl(var(--danger));
    --color-danger-foreground: hsl(var(--danger-foreground));
    --color-neutral: hsl(var(--neutral));
    --color-neutral-foreground: hsl(var(--neutral-foreground));
}
S
Description
No description provided
Readme MIT
91 MiB
Languages
Astro 94.4%
CSS 4.1%
JavaScript 0.8%
TypeScript 0.7%