
Company News
Socket Named Top Sales Organization by RepVue
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.
mich-pages
Advanced tools
A React Page to easily generate create, view, update and delete pages for react using just a few lines of code.
A React library for easily generating create, view, update and delete pages using just a few lines of code.
npm install mich-pages
# or
yarn add mich-pages
# or
pnpm add mich-pages
Import the styles in your main application file:
// Import the complete CSS bundle
import 'mich-pages/style';
Or import the main package which includes styles:
import 'mich-pages';
import { Input, SelectInput, FileInput } from 'mich-pages';
function MyForm() {
return (
<div>
<Input
label="Name"
placeholder="Enter your name"
type="text"
required
onChange={(value) => console.log(value)}
/>
<SelectInput
label="Category"
placeholder="Choose a category"
options={[
{ label: "Technology", value: "tech" },
{ label: "Design", value: "design" }
]}
onChange={(value) => console.log(value)}
/>
<FileInput
label="Upload Files"
accept="image/*,.pdf"
multiple
onChange={(files) => console.log(files)}
/>
</div>
);
}
import { NewCreatePage, NewViewPage, NewSubmitPage } from 'mich-pages';
const pageConfig = {
title: "User Management",
description: "Create and manage user accounts",
categories: [
{ label: "Admin", value: "admin" },
{ label: "User", value: "user" }
],
onSubmit: (data) => {
console.log('Form submitted:', data);
// Handle form submission
},
onCancel: () => {
console.log('Form cancelled');
// Handle cancellation
},
fields: [
{
type: "text",
label: "Full Name",
placeholder: "Enter full name",
required: true
},
{
type: "email",
label: "Email Address",
placeholder: "Enter email address",
required: true
},
{
type: "select",
label: "Role",
options: [
{ label: "Admin", value: "admin" },
{ label: "User", value: "user" }
]
}
]
};
function App() {
return (
<div>
{/* Create Page */}
<NewCreatePage {...pageConfig} />
{/* View Page */}
<NewViewPage {...pageConfig} />
{/* Submit Page */}
<NewSubmitPage {...pageConfig} />
</div>
);
}
import { PresetQuillEditor } from 'mich-pages';
function MyEditor() {
return (
<PresetQuillEditor
value=""
onChange={(value) => console.log(value)}
placeholder="Start writing your content..."
/>
);
}
import { StyledButton } from 'mich-pages';
function MyButtons() {
return (
<div>
<StyledButton
variant="primary"
onClick={() => console.log('Primary clicked')}
>
Primary Button
</StyledButton>
<StyledButton
variant="secondary"
onClick={() => console.log('Secondary clicked')}
>
Secondary Button
</StyledButton>
</div>
);
}
Input - Text input with validationSelectInput - Dropdown selectSelectInput2 - Alternative select variantSelectInput3 - Enhanced select variantFileInput - File upload componentPresetQuillEditor - Rich text editorNewCreatePage - Complete create form pageNewViewPage - Display page for viewing recordsNewSubmitPage - Submission page with processing statesNewPage - Generic page componentNewPageUi - UI-only page componentStyledButton - Pre-styled button with variantsAll components include full TypeScript definitions:
import { InputI, SelectI, PageI } from 'mich-pages';
const inputConfig: InputI = {
label: "Sample Input",
placeholder: "Enter text...",
type: "text",
required: true,
onChange: (value: string) => console.log(value),
value: ""
};
The package uses Tailwind CSS for styling. You can customize the appearance by:
:root {
--primary: #your-primary-color;
--gray-3: #your-gray-color;
--white-color: #your-white-color;
}
Using Tailwind Classes: All components accept className props for additional styling.
Custom CSS: Import the styles and override specific classes as needed.
git checkout -b feature/amazing-feature)git commit -m 'Add some amazing feature')git push origin feature/amazing-feature)This project is licensed under the MIT License - see the LICENSE file for details.
FAQs
A React Page to easily generate create, view, update and delete pages for react using just a few lines of code.
The npm package mich-pages receives a total of 3 weekly downloads. As such, mich-pages popularity was classified as not popular.
We found that mich-pages demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.