karthikeyan-ui
v1.0.7
Published
A custom UI components library built by Karthikeyan using React and MUI.
Maintainers
Readme
karthikeyan-ui-components
A custom React component library with reusable UI elements like TextField, DropDown, DatePicker, ExportTable, ViewData, and Tooltip.
📦 Installation
bash npm install karthikeyan-ui
import
import { TextField, DropDown, DatePicker, ExportTable, ViewData, Tooltip } from 'karthikeyan-ui';
🧩 Components
- 🔤 TextField A reusable input component.
Props:
Prop Type Description
label string Label for the field value string Input value onChange function Callback for value change type string Input type (text, number, etc.) placeholder string Placeholder text
- ⬇️ DropDown A styled dropdown menu.
Props:
Prop Type Description
label string Label for the dropdown options array List of options { label, value } value any Selected value onChange function Callback on value change placeholder string Placeholder text
- 📅 DatePicker Date picker with formatted output.
Props:
Prop Type Description
label string Label for the picker value string Date in dd-MM-yyyy format onChange function Returns selected date in same format disabled boolean Disable the picker placeholder string Placeholder text
- 📤 ExportTable Exports data as Excel or CSV and pdf.
Props:
Prop Type Description
columns array Column headers data array Data to display/export fileName string Export file name (optional)
- 👁️ ViewData Simple data viewer for label-value pairs.
Props:
Prop Type Description
data array List of { label, value } objects
- 💬 Tooltip Custom styled tooltip.
Props:
Prop Type Description
title string Tooltip message children node Wrapped component
