0.14.0 • Published 3 months ago

@not-govuk/tabs v0.14.0

Weekly downloads
-
License
MIT
Repository
-
Last release
3 months ago

NotGovUK - Tabs

A component that lets users navigate between related sections of content, displaying one section at a time.

Using this package

First install the package into your project:

npm install -S @not-govuk/tabs

Then use it in your code as follows:

import React, { createElement as h } from 'react';
import Tabs from '@not-govuk/tabs';

export const MyComponent = props => (
  <Tabs
    items={[
      {
        id: 'a1',
        label: 'AAA',
        content: (<p>A</p>)
      },
      {
        id: 'b1',
        label: 'BBB',
        content: (<p>B</p>)
      },
      {
        id: 'c1',
        label: 'CCC',
        content: (<p>C</p>)
      }
    ]}
  />
);

export default MyComponent;

Working on this package

Before working on this package you must install its dependencies using the following command:

pnpm install

Testing

npm test

Building

npm run build

Clean-up

npm run clean
0.14.0

3 months ago

0.13.0

3 months ago

0.12.1

3 months ago

0.12.0

4 months ago

0.11.1

4 months ago

0.11.0

4 months ago

0.10.0

4 months ago

0.8.7

7 months ago

0.9.0

5 months ago

0.9.1

4 months ago

0.8.6

9 months ago

0.8.5

10 months ago

0.8.4

10 months ago

0.8.3

10 months ago

0.8.1

1 year ago

0.8.0

1 year ago

0.8.2

1 year ago

0.7.2

2 years ago

0.7.1

2 years ago

0.7.0

2 years ago

0.6.0

2 years ago

0.5.8

2 years ago

0.5.9

2 years ago

0.5.7

2 years ago

0.5.4

2 years ago

0.5.3

2 years ago

0.5.6

2 years ago

0.5.5

2 years ago

0.5.0

2 years ago

0.5.2

2 years ago

0.5.1

2 years ago

0.4.1

3 years ago

0.4.0

3 years ago

0.4.2

3 years ago

0.3.4

3 years ago

0.3.3

3 years ago

0.3.0

3 years ago

0.3.2

3 years ago

0.3.1

3 years ago

0.2.16

3 years ago

0.2.15

3 years ago

0.2.14

4 years ago

0.2.13

4 years ago

0.2.12

4 years ago

0.2.11

4 years ago

0.2.10

4 years ago

0.2.9

4 years ago

0.2.8

4 years ago

0.2.7

4 years ago

0.2.6

4 years ago

0.2.5

4 years ago

0.2.4

4 years ago

0.2.3

4 years ago

0.2.2

4 years ago