🎉 Minimalist Reactkit provides you with easily restyable components
Check the documentation to get you started!
npm i minimalist-reactkit
yarn add minimalist-reactkit
import React from 'react';
import { BtnPrimary } from 'minimalist-reactkit';
import 'minimalist-reactkit/index.css';
function App(){
return (
<div>
<BtnPrimary>Click Me</BtnPrimary>
</div>
);
}
import {Table} from 'minimalist-reactkit';
import 'minimalist-reactkit/index.css';
const tableData = [
{ name: 'Godwin Emmanuel', status: <Pill text='Ongoing' className='warning' />, flightId: 'T2089392BJ9', trip: 'Dubai (DXB) - Lagos (LOS)', action: <a>View</a> },
{ name: 'Clara Kaio', status: <Pill text='Ongoing' className='warning' />, flightId: 'T2089392BJ9', trip: 'Dubai (DXB) - Lagos (LOS)', action: <a>View</a> },
{ name: 'Joseph Tabina', status: <Pill text='Ongoing' className='warning' />, flightId: 'T2089392BJ9', trip: 'Dubai (DXB) - Lagos (LOS)', action: <a>View</a> },
]
<Table
head={['Applicant Name', 'Status', 'Booking Id', 'Destination', 'Action']}
accessor={['name', 'status', 'flightId', 'trip', '']} // if sortable column is needed
body={tableData}
/>
<Table
head={['Applicant Name', 'Status', 'Booking Id', 'Destination', 'Action']}
accessor={['name', 'status', 'flightId', 'trip', '']}
body={tableData}
isRow = {true}
Row={TableRow}
rowProps={{ currentTime: '24h' }} // pass props to row component
/>
const TableRow = ({data}:any) => { // data is passed by default
return(
<tr>
<td>{data.name}</td>
<td>{data.status}</td>
<td>{data.flightId}</td>
<td>{data.trip}</td>
<td>{data.action}</td>
</tr>
)
}
Check the documentation to get you started!