New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More

@govuk-frederic/table

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@govuk-frederic/table

govuk-frederic: Frederic project specific components.

  • 0.0.2
  • npm
  • Socket score

Version published
Maintainers
4
Created

Table

Import

  import Table from '@govuk-frederic/table';

Usage

Simple

<Table titles={arrayExampleHeadings} rows={arrayExampleContent} names={exampleNames} />

rowIncludesHeading

<Table titles={arrayExampleHeadings} rows={arrayExampleContent} rowIncludesHeading />

rowIncludesHeading, no titles

<Table rows={arrayExampleContent} rowIncludesHeading names={exampleNames} />

rowIncludesHeading, no titles, small single row

<Table rows={[['title', 'value']]} rowIncludesHeading />

rowIncludesHeading, with flexible columns

<Table titles={arrayExampleHeadings} rows={arrayExampleContent} flexibleColumns rowIncludesHeading />

Properties

PropRequiredDefaultTypeDescription
flexibleColumns``````bool
name``````string
names[]arrayOf[object Object]
rowIncludesHeading``````bool
rowstrue``````arrayOf[object Object]
titles``````arrayOf[object Object]

FAQs

Package last updated on 17 Jul 2018

Did you know?

Socket

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.

Install

Related posts