goji-embed
v1.1.3
Published
Embeddable Goji components for both React and vanilla JS
Readme
Goji Embed
A lightweight React component library providing embeddable form and button components for seamless integration into your React applications.
Features
- Embeddable Form: Easily add a customizable form to your app.
- Embeddable Button: Simple, reusable button component.
- TypeScript Support: Fully typed for a great developer experience.
- Zero Dependencies: Only requires React as a peer dependency.
Installation
npm install goji-embed
# or
yarn add goji-embedUsage
import { GojiEmbedForm, GojiEmbedButton } from 'goji-embed';
function App() {
return (
<div>
<GojiEmbedForm /* props here */ />
<GojiEmbedButton /* props here */ />
</div>
);
}Components
<GojiEmbedForm />
A form component for embedding in your React app.
Props:
(Document your props here, e.g. onSubmit, fields, etc.)
<GojiEmbedButton />
A reusable button component.
Props:
(Document your props here, e.g. onClick, label, etc.)
Development
- Built with Vite and TypeScript.
- To build the library:
npm run build
License
MIT
Feel free to open issues or pull requests for improvements or bug fixes! creating dev branch
