Skip to main content

Portal Table Mockup

Company NameCompany URLPrimary ContactDate CreatedLast ModifiedStatus
ACP Biomech LTDhttps://www.acpbiomech.com/Eddie Claude02 APR 202403 APR 2024Inactive
Agricore Labshttps://www.agclabs.com/John Baker22 FEB 202407 APR 2024Approved
English Bakeries COhttps://www.engbakeries.ca/Sarah English05 APR 202406 APR 2024Pending
Grass Labshttps://www.grass.ca/Kara Dunez01 JAN 202401 APR 2024Approved
Dumpling Fields LTDhttps://www.dumps.com/Jose Chang09 FEB 202408 APR 2024Inactive
Farmer Market Inchttps://www.farmbros.com/Jace Mack02 APR 202403 APR 2024Approved
1

Overview

This component is a table mimicking functionality from the previous version of the CNH Developer Portal. It bases its styles on other tables made for Docs.

Note that in props, object properties are expected to be sorted. In practical applications, the objects provided to this component would be pre-processed.

Details

CriteriaComponent Meets Criteria
Has hover stylesYes
Has light and dark modeYes
Has brand themingNo

Component Props

Prop NameTypeDescription
columnHeadersobjectContains the header data for the table
entriesarrayContains the entries for the table

Example Code

import PortalTable from '@site/src/elements/PortalTable';

<PortalTable
columnHeaders={{
companyName: 'Company Name',
companyURL: 'Company URL',
primaryContact: 'Primary Contact',
dateCreated: 'Date Created',
lastModified: 'Last Modified',
status: 'Status',
}}
entries={[
{
companyName: 'ACP Biomech LTD',
companyURL: 'https://www.acpbiomech.com/',
primaryContact: 'Eddie Claude',
dateCreated: '02 APR 2024',
lastModified: '03 APR 2024',
status: 'Inactive',
},
{
companyName: 'Agricore Labs',
companyURL: 'https://www.agclabs.com/',
primaryContact: 'John Baker',
dateCreated: '22 FEB 2024',
lastModified: '07 APR 2024',
status: 'Approved',
},
{
companyName: 'English Bakeries CO',
companyURL: 'https://www.engbakeries.ca/',
primaryContact: 'Sarah English',
dateCreated: '05 APR 2024',
lastModified: '06 APR 2024',
status: 'Pending',
},
]}
/>