4.0.12 • Published 2 months ago

@nice-digital/nds-phase-banner v4.0.12

Weekly downloads
27
License
MIT
Repository
github
Last release
2 months ago

@nice-digital/nds-phase-banner

Phase banner component for the NICE Design System

Installation

Install Node, and then:

npm i @nice-digital/nds-phase-banner --save

Usage

React

Import the PhaseBanner component from the package and use within JSX:

import React from "react";
import { PhaseBaner } from "@nice-digital/nds-phase-banner";

<PhaseBanner alpha>
	This is a new service - your <a href='#'>feedback</a> will help us to improve it.
</PhaseBanner>;

Props

children
  • Type: ReactNode (required)

The body content of the phase banner. The phase banner itself is a paragraph so only text content should be supplied.

<PhaseBanner alpha>
	This is a new service - your <a href='#'>feedback</a> will help us to improve it.
</PhaseBanner>
alpha
  • Type: boolean (one of 'alpha' or 'beta' is required)

Mark the phase of the banner display as "alpha".

<PhaseBanner alpha>
	This is a new service - your <a href='#'>feedback</a> will help us to improve it.
</PhaseBanner>;
beta
  • Type: boolean (one of 'alpha' or 'beta' is required)

Mark the phase of the banner display as "beta".

<PhaseBanner beta>
	This is a new service - your <a href='#'>feedback</a> will help us to improve it.
</PhaseBanner>;
className
  • Type: string

Any additional className will be merged on to the container.

Other props

Any additional props will be spread across the container.

<PhaseBanner alpha data-track="track-this">...</PhaseBanner>

SCSS

If you're not using React, then import the SCSS directly into your application by:

@forward '@nice-digital/nds-phase-banner/scss/phase-banner';

HTML

If you're not using React, then include the SCSS as above and use the HTML:

<p class="phase-banner">
  <span class="phase-banner__tag">
    <span class="tag tag--alpha tag--impact">Alpha</span>
  </span>
  <span class="phase-banner__label">
    This is a new service - your feedback will help us to improve it.
  </span>
</p>
4.0.12

2 months ago

4.0.11

2 months ago

4.0.10

2 months ago

4.0.9

2 months ago

4.0.8

3 months ago

4.0.7

3 months ago

4.0.7-alpha.0

3 months ago

4.0.6

10 months ago

4.0.5

11 months ago

4.0.4

1 year ago

4.0.3

1 year ago

4.0.2

1 year ago

4.0.2-alpha.0

1 year ago

3.0.3

1 year ago

4.0.0-alpha.0

1 year ago

3.0.2-alpha.0

2 years ago

3.0.2

2 years ago

3.0.1

2 years ago

3.0.1-alpha.0

2 years ago

2.0.4-alpha.0

2 years ago

2.0.6-alpha.0

2 years ago

2.0.0-alpha.0

2 years ago

2.0.2-alpha.0

2 years ago

2.0.9-alpha.0

2 years ago

1.2.19-alpha.0

2 years ago

3.0.0

2 years ago

2.0.7-alpha.0

2 years ago

2.0.11-alpha.0

2 years ago

1.2.17

2 years ago

2.0.3-alpha.0

2 years ago

2.0.5-alpha.0

2 years ago

2.0.10-alpha.0

2 years ago

2.0.1-alpha.0

2 years ago

2.0.8-alpha.0

2 years ago

1.2.18-alpha.0

2 years ago

1.2.20-alpha.0

2 years ago

1.2.16

2 years ago

1.2.15

2 years ago

1.2.14

2 years ago

1.2.12

2 years ago

1.2.13

2 years ago

1.2.11

3 years ago

1.2.11-alpha.0

3 years ago

1.2.8

3 years ago

1.2.10-alpha.0

3 years ago

1.2.9-alpha.0

3 years ago

1.2.8-alpha.0

3 years ago

1.2.7-alpha.0

3 years ago

1.2.6-alpha.0

3 years ago

1.2.5

3 years ago

1.2.4

3 years ago

1.2.4-alpha.0

3 years ago

1.2.2-alpha.0

3 years ago

1.2.3

3 years ago

1.2.2

3 years ago

1.2.1

3 years ago

1.2.0

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.23-alpha.0

4 years ago

1.0.22-alpha.0

4 years ago

1.0.21-alpha.0

4 years ago

1.0.20-alpha.0

4 years ago

1.0.18-alpha.0

4 years ago

1.0.17-alpha.0

4 years ago

1.0.16-alpha.0

4 years ago

1.0.15-alpha.0

4 years ago

1.0.14-alpha.0

4 years ago

1.0.12-alpha.0

4 years ago

1.0.11-alpha.0

4 years ago

1.0.10-alpha.0

5 years ago

1.0.9-alpha.0

5 years ago

1.0.8-alpha.0

5 years ago

1.0.7-alpha.0

5 years ago

1.0.6-alpha.0

5 years ago

1.0.5-alpha.0

5 years ago

1.0.4-alpha.0

5 years ago

1.0.3-alpha.0

5 years ago

1.0.2-alpha.0

5 years ago