### Install Dependencies Source: https://github.com/zidsa/zidmui/blob/main/CONTRIBUTING.md Run this command to install all project dependencies using pnpm. ```bash task install ``` -------------------------------- ### Install Zid MUI Package Source: https://github.com/zidsa/zidmui/blob/main/README.md Use this command to add the Zid MUI package to your project. Ensure you have pnpm installed. ```sh pnpm add @zidsa/zidmui ``` -------------------------------- ### Start Storybook Dev Server Source: https://github.com/zidsa/zidmui/blob/main/CONTRIBUTING.md Use this command to start the Storybook development server for UI component exploration. To build Storybook for production, use 'pnpm build-storybook'. ```bash # start storybook dev server pnpm storybook # build storybook pnpm build-storybook ``` -------------------------------- ### Install Zid MUI and Dependencies Source: https://context7.com/zidsa/zidmui/llms.txt Install the Zid MUI package along with necessary peer dependencies like React, MUI, and use-debounce. ```sh pnpm add @zidsa/zidmui pnpm add react react-dom use-debounce @mui/material @mui/lab @emotion/styled ``` -------------------------------- ### Install Zid MUI Peer Dependencies Source: https://github.com/zidsa/zidmui/blob/main/README.md These are the required peer dependencies for Zid MUI. Install them using pnpm. ```sh pnpm add @zidsa/zidmui react react-dom use-debounce @mui/material @mui/lab @emotion/styled ``` -------------------------------- ### Zid MUI Input Examples (CSS) Source: https://github.com/zidsa/zidmui/blob/main/src/stories/Configure.mdx Examples of Zid MUI input fields using CSS classes. Shows default and error states, along with helper text. ```html
Carrier: Aramex, DHL
Handling time: 1–2 business days
3 orders require attention
Carrier: Aramex, DHL
Handling time: 1–2 business days
3 orders require attention
Product: Blue Widget (SKU-1234)
SAR 142,500
``` -------------------------------- ### Client-side Pagination with usePaginatedData Hook Source: https://context7.com/zidsa/zidmui/llms.txt Use this hook to manage client-side pagination for large datasets. It returns the current page slice, page number, limit, and functions to change the page and limit. ```tsx import { usePaginatedData } from '@zidsa/zidmui/hooks/use-paginated-data'; import { AppPagination } from '@zidsa/zidmui/components/app-pagination'; function OrderTable({ orders }: { orders: Order[] }) { const { data, page, pagesCount, onPageChange } = usePaginatedData({ data: orders, perPage: 15, }); return ( <>| {order.id} | {order.total} |