2.1.5 • Published 2 months ago

@brighthr/component-alert v2.1.5

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

Alert

To install, type the following into the command line at the root of your project:

npm i @brighthr/component-alert

To implement the Alert component into your project you’ll need to add the import:

import Alert from '@brighthr/component-alert';

After adding import into your project you can use it simply like:

<Alert />

Props

NameTypeDefaultDescription
alertValidationShowStatebooleantrue--
betaBadgeAsButtonbooleanfalseIf true, the beta badge will be a button.
borderbooleanfalseIf true, the border will be displayed.
classNamestring--
dismissbooleanfalseIf true, the alert will be dismissable.
fullWidthbooleanfalseIf true, the alert will fill the width of it's container.
iconstringWill display the appropriate icon when passed the iconName.
inlinebooleanfalseIf true, the content inside the alert will be vertically centered.
isBetabooleanfalseIf true, the beta badge will be displayed.
isLabsbooleanfalseIf true, the labs badge will be displayed.
onClickBetaBadge() => voidFunction for handling the onClick beta badge.
onDismiss() => voidFunction for handling the onDismiss.
size'xs' \| 'sm' \| 'base'baseSets the size of the alert.
titlestringThe title of the alert.
type'information' \| 'success' \| 'warning' \| 'error'informationSets the color theme of the alert.
2.1.5

2 months ago

2.1.4

2 months ago

2.1.3

2 months ago

2.1.2

2 months ago

2.1.1

3 months ago

2.1.0

3 months ago

2.0.1

4 months ago

2.0.0

4 months ago

1.2.3

4 months ago

1.2.2

5 months ago

1.2.0

8 months ago

1.1.1

9 months ago

1.0.2

9 months ago

1.1.0

9 months ago

1.0.1

10 months ago

1.0.0

10 months ago

1.1.4

8 months ago

1.1.3

8 months ago

1.2.1

8 months ago

1.1.2

8 months ago

1.0.3

9 months ago

0.3.0

11 months ago

0.3.2

10 months ago

0.3.1

11 months ago

0.3.3

10 months ago

0.2.1

11 months ago

0.1.20

1 year ago

0.1.21

1 year ago

0.1.22

1 year ago

0.1.23

1 year ago

0.1.24

1 year ago

0.1.25

1 year ago

0.1.26

1 year ago

0.2.0

1 year ago

0.1.19

1 year ago

0.1.16

1 year ago

0.1.17

1 year ago

0.1.18

1 year ago

0.1.11

1 year ago

0.1.12

1 year ago

0.1.13

1 year ago

0.1.14

1 year ago

0.1.15

1 year ago

0.1.10

1 year ago

0.1.8

1 year ago

0.1.9

1 year ago

0.1.7

1 year ago

0.1.6

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.5

2 years ago

0.1.0

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago