@grampro/low-code-lib
v1.0.6
Published
Headless component wrapper library for Material UI
Readme
@grampro/low-code-lib
A headless component wrapper library for Material UI, designed for low-code applications and easy integration.
Features
- Headless Wrappers: Simplified interfaces for complex Material UI components.
- Interactive CLI: Easily add components to your project with a nice interactive header.
- Auto-Dependency Management: Automatically checks and informs about required dependencies.
- Dynamic Path Detection: Smartly detects if you are using a
srcdirectory or Next.jsappdirectory.
Installation
You can use the library directly via npx:
npx @grampro/low-code-lib addOr install it globally/locally:
npm install -g @grampro/low-code-lib
grampro-lib addSupported Components
- Input: Wrapper for
TextField. - Select: Wrapper for
SelectwithMenuItem. - Checkbox: Wrapper for
CheckboxwithFormControlLabel. - Switch: Wrapper for
Switchwith label support. - DataGrid: Pre-styled wrapper for
@mui/x-data-grid. - Dialog: Simplified Dialog with confirm/cancel actions.
- Snackbar: Toast notifications with
Alert. - Breadcrumbs: Easy to use breadcrumb navigation.
Usage
- Run the CLI:
npx @grampro/low-code-lib add - Select the components you want to use.
- Confirm the installation path (defaults to
src/components/uiorapp/components/ui). - Import and use the components in your project!
import { Input, Select } from "./components/ui";
function App() {
return (
<>
<Input label="Username" />
<Select
label="Role"
options={[
{ label: "Admin", value: "admin" },
{ label: "User", value: "user" },
]}
/>
</>
);
}License
ISC
