
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
quadra-component
Advanced tools
quadra-component is a React.js library that provides components to to make it easier for quadra developers.
Install the package via npm:
npm install quadra-component
Install the package via yarn:
yarn add quadra-component
This component is used to create tables dynamically and is easy to use and already uses types for the data that appears in the table.
data (any[]): This is props of your data.columns (Columns[]): The structure of your table.loading (boolean): The loading state.onRowClick (void function): You can use this function to trigger any action while you click the table body.color (string): You can change the header table background color.textColor (string): You can change the header table text color.fieldId (string): The key of object in your data.label (string): The title you want to show in header table.render (React function): The render is a function that returns react element, you can use this to manipulate data and you can show the data as you want or you can enhance the look of your table body.renderHeader (React function): The renderHeader is a function that returns react element, you can use this to enhance or change the look of your table header.import { type Columns } from "quadra-component";
const header: Columns<Forum>[] = [
{
fieldId: "index",
label: "No",
},
{
fieldId: "title",
label: "Title",
},
{
fieldId: "description",
label: "Description",
render: (data) => (
<p>
{data?.description !== undefined &&
(data.description.length > 25
? data?.description.slice(0, 20) + "..."
: data?.description)}
</p>
),
},
{
fieldId: "image",
label: "Post Image",
render: (data) => <img src={data?.image} alt="Images" />,
},
{
fieldId: "created_at",
label: "Posted At",
render: (data) => <p>{moment(data?.created_at).format("MMM Do, YYYY")}</p>,
},
{
fieldId: "likes",
label: "Total Like",
},
{
fieldId: "moderator",
label: "Moderator",
},
{
fieldId: "admin",
label: "Posted By",
render: (data) => <p>{data?.admin.email}</p>,
},
];
import { Table } from "quadra-component";
<Table<Forum>
columns={header}
data={data}
loading={isLoading}
/>
This component is used when you need pagination for the table
currentPage (number): The number of the current page.totalPages (number): The total of your data page.onPageChange (void function): The function that can be used to change your pagecolor (string): You can change the color of pagination.import React from "react";
import { Pagination, Table } from "quadra-component";
const App = () =>{
<>
<Table<Forum>
columns={header}
data={data}
loading={isLoading}
/>
<Pagination
currentPage={data!?.meta.currentPage}
totalPages={data!?.meta.totalPages}
onPageChange={handlePageChange}
/>
</>
}
export default App;
This component allows you to changes the svg colors
svg (number): The svg you want to change.className (number): The react className.normalWidth (void function): The normal width for 1.5rem / 24pximport React from "react";
import { SvgIcon } from "quadra-component";
import { ChevronLeftSVG } from "assets/images";
const App = () => {
<>
<SVGIcon svg={ChevronLeftSVG} className="bg-red" />
</>;
};
export default App;
This project is licensed under the ISC License.
FAQs
NPM package for quadra karya santosa developer
We found that quadra-component demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 open source maintainers 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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.