2.0.0 • Published 1 year ago

@springernature/global-pill v2.0.0

Weekly downloads
12
License
MIT
Repository
-
Last release
1 year ago

Global Pill

Branding

To include global-pill in your application, you need to choose ONE brand from those available. The DEFAULT brand is included in all other brands, and any settings that are not configured will fall back to default.

// Pick ONE of the brands below to include
@import '@springernature/global-pill/scss/10-settings/default';
@import '@springernature/global-pill/scss/10-settings/nature';

// Include this with your other components
@import '@springernature/global-pill/scss/50-components/pill';

Modifiers

Secondary

Allows for an alternative colour scheme to be used. This includes text colour, border colour, and background colour.

<div class="c-pill c-pill--secondary">Pill</div>

Borderless

Allows for a borderless component.

<div class="c-pill c-pill--borderless">Pill</div>

HTML

<ul>
    <li>
        <a href="/path/to/1" class="c-pill">Link</a>
    </li>
    <li>
        <p href="/path/to/2" class="c-pill">Some text</p>
    </li>
    <li>
        <a href="/path/to/3" class="c-pill">Another link</a>
    </li>
</ul>
2.0.0

1 year ago

1.6.0

2 years ago

1.5.0

2 years ago

1.3.2

2 years ago

1.4.0

2 years ago

1.3.1

3 years ago

1.3.0

3 years ago

1.2.0

3 years ago

1.1.0

3 years ago

1.0.0

3 years ago