@chirag127/oriz-ui
v0.1.0
Published
Shared Oriz UI — ContactForm + widgets used across the chirag127/oriz* family.
Downloads
124
Maintainers
Readme
@chirag127/oriz-ui
Shared Oriz UI components — currently a minimal ContactForm Astro component used across the chirag127/oriz* family of sites.
Install
pnpm add @chirag127/oriz-uiPeer dep: astro@^5 || ^6.
Usage
---
import { ContactForm } from '@chirag127/oriz-ui';
// or:
// import ContactForm from '@chirag127/oriz-ui/ContactForm';
---
<ContactForm
accessKey={import.meta.env.PUBLIC_WEB3FORMS_KEY}
subject="Contact from oriz.in"
/>Set PUBLIC_WEB3FORMS_KEY in your site .env (get a free key at https://web3forms.com) or pass accessKey directly.
Props
| Prop | Type | Default | Notes |
| ----------- | -------- | -------------------------------------------- | ---------------------------------- |
| accessKey | string | import.meta.env.PUBLIC_WEB3FORMS_KEY | Web3Forms public access key. |
| subject | string | "New Oriz contact form submission" | Email subject line. |
| redirect | string | "" | Optional post-submit redirect URL. |
| class | string | "" | Extra CSS classes. |
Status
v0.1.0 — stub. Real form-backend logic, validation, and styling will land later.
License
MIT © Chirag Singhal
