1.0.1 • Published 6 years ago

@veams/component-badge v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
6 years ago

Badge

Description

A simple badge component with different states (e.g. error, success, notice,...) and flexible content.


Installation

Installation with Veams

veams install component badge
veams -i c badge

Fields

badge.hbs

Settings

ParameterTypeValueDescription
settings.badgeContextClassStringdefaultJust pass a string
settings.badgeClassesStringModifier classes

Content

ParameterTypeDescription
content.badgeTypeStringDefine your badge type (i.e. alert, error, notice, success)
content.badgeContentStringBadge content

Sass Options

There are global variables which you can change:

VariableValueDescription
$badge-color-alert:#fff6bf !defaultBackground color of alert badge.
$badge-color-error:#fbe3e4 !defaultBackground color of error badge.
$badge-color-notice:#e5edf8 !defaultBackground color of notice badge.
$badge-color-success:#e6efc2 !defaultBackground color of success badge.
1.0.1

6 years ago

1.0.0

6 years ago