@evoapi/evonexus-ui
v0.1.1
Published
EvoNexus plugin UI primitives — Button, Form, Table, Modal, schema-driven CRUD with Ajv
Readme
@evoapi/evonexus-ui
UI primitives for EvoNexus plugin authors.
Installation
npm install @evoapi/evonexus-ui react react-domComponents
Button,Card,Modal,Toast,Input,Select,Checkbox— base primitivesErrorBoundary— render error catcher (host wraps each plugin route automatically)<SchemaForm>— JSON-Schema-driven form with Ajv validation<SchemaTable>— declarative table with sorting
Usage
import { SchemaForm, Button } from "@evoapi/evonexus-ui";
import "@evoapi/evonexus-ui/tokens.css";
const schema = {
type: "object",
properties: {
name: { type: "string", minLength: 1 },
status: { type: "string", enum: ["active", "archived"] }
},
required: ["name"]
};
export function MyForm() {
return <SchemaForm schema={schema} onSubmit={(values) => console.log(values)} />;
}License
MIT — see LICENSE.
