1.1.4 • Published 23 days ago

@synerise/ds-alert v1.1.4

Weekly downloads
187
License
ISC
Repository
github
Last release
23 days ago

id: alert

title: Alert

Alert UI Component

Installation

npm i @synerise/ds-alert
or
yarn add @synerise/ds-alert

Usage

import Alert from '@synerise/ds-alert'

<Alert 
    mode="background-outline"
    showIcon
    type="success"
    message="Success!"
    description="Success description"
    showMoreLabel="Show more"
    onShowMore={() => {}}
/>

Demo

API

PropertyDescriptionTypeDefault
afterCloseCalled when close animation is finished() => void-
closableWhether Alert can be closedboolean-
closeTextClose text to showstring\ ReactNode-
descriptionAdditional content of Alertstring\ ReactNode-
iconCustom icon, effective when showIcon is trueReactNode-
messageContent of Alertstring\ ReactNode-
showIconWhether to show iconbooleanfalse
typeType of Alert styles, options: success, info, warning, errorstringinfo
onCloseCallback when Alert is closed(e: MouseEvent) => void-
modeWhether to render alert with outline, background, or transparent, options: background, background-outline, outline, clearstringbackground
colorSet the color that overrides the standard color of alert, options: blue, grey, green, yellow, red, pink, mars, orange, fern, cyan, purple, violetstring

Alert.InlineAlert

PropertyDescriptionTypeDefault
typeType of InlineAlert, options: success, alert, warningstringwarning
messageMessage of alertstring \ React.ReactNode-

Alert.SectionMessage

PropertyDescriptionTypeDefault
typeType of SectionMessage, options: notice, negative, positive,neutral,supply,service,entitystringnegative
messageMessage of section messsageReact.ReactNode-
customColortype of colors,options:red, blue, green,yellow,grey,purple,violet, cyan,fern,orange, mars,pinkstring-
customColorIcontype of colors,options:red, blue, green,yellow,grey,purple,violet, cyan,fern,orange, mars,pinkstring-
colortype of colors,options: red, green,yellow,grey,purple,violet, cyanstring-
modetype of modes, options: background, background-outline,outline,clearstring-
showMoreLabelprop to show labelReact.ReactNode-
onShowMorecallback executed after clickingvoid-
newClientprop to show buttonReact.ReactNode/boolean-
moreButtonsprop to show buttonsReact.ReactNode/boolean-
withEmphasisprop to show bolder textReact.ReactNode-
withLinkprop to show highlited textReact.ReactNode-
unorderedListprop to show unordered listReact.ReactNode-
withCloseprop to show close buttonReact.ReactNode-
customIconprop to set custom iconReact.ReactNode-
textButtontext for buttonstring-

Alert.AlertSemanticColor

PropertyDescriptionTypeDefault
typeType of AlertSemanticColor, options: notice, negative, positive,informative,neutral,supply,service,entitystringpositive
colortype of colors,options: red, green,yellow,grey,purple,violet, cyan,bluestring-
modetype of modes, options: background, background-outline,outline,shadowstring-

Alert.IconAlert

PropertyDescriptionTypeDefault
typeType of Alert styles, options: success, info, warning, errorstringwarning
messageMessage of Icon AlertReact.ReactNode-
disabledprop to set disabled iconboolean-
withEmphasisprop to show bolder textReact.ReactNode-
withLinkprop to show highlited textReact.ReactNode-
iconAlertprop to set custom iconboolean-
hoverButtonprop to set hover state buttonboolean-
customIconprop to set custom iconReact.ReactNode-

Alert.Toast

PropertyDescriptionTypeDefault
typeType of Alert styles, options: success, info, warning, errorstringwarning
messageMessage of Icon AlertReact.ReactNode-
buttonprop to set buttonReact.ReactNode-
expandedprop to set show expanded contentboolean-
onExpandprop on click to show contentisExpanded:boolean => void-
customColortype of colors,options:red, blue, green,yellow,grey,purple,violet, cyan,fern,orange, mars,pinkstring-
customColorIcontype of colors,options:red, blue, green,yellow,grey,purple,violet, cyan,fern,orange, mars,pinkstring-
colortype of colors,options: red, green,yellow,grey,bluestring-
colorIcontype of colors,options: white, black,yellow,grey,bluestring-
customColorTexttype of colors,options:red, blue, green,yellow,grey,purple,violet, cyan,fern,orange, mars,pinkstring-
withCloseprop to show close buttonReact.ReactNode-
customIconprop to set custom iconReact.ReactNode-
expanderprop to set expanded iconReact.ReactNode-
expanderContentprop to set custom iconReact.ReactNode-
onCloseClickCallback when Toast is closed(e: MouseEvent) => void-
showprop to show Toastboolean-

Alert.BroadcastBar

PropertyDescriptionTypeDefault
typeType of Alert styles, options: success, warning, negativestringwarning
colortype of colors,options: red, green,yellowstring-
onCloseClickprop to close broadcastBarvoid-
withEmphasisprop to show bolder textReact.ReactNode-
withLinkprop to show highlited textReact.ReactNode-
withCloseprop to set closeIconReact.ReactNode-
buttonprop to set buttonboolean-
textButtonstring of buttonstring-
textstring of withEmphasis or withLinkstring-
1.1.1

1 month ago

1.1.0

2 months ago

1.1.4

23 days ago

1.1.3

25 days ago

1.1.2

1 month ago

1.0.2

3 months ago

1.0.1

3 months ago

1.0.0

3 months ago

1.0.6

2 months ago

1.0.5

2 months ago

1.0.4

3 months ago

1.0.3

3 months ago

0.9.10

4 months ago

0.9.9

4 months ago

0.9.8

4 months ago

0.9.7

4 months ago

0.9.4

4 months ago

0.9.6

4 months ago

0.9.5

4 months ago

0.9.3

4 months ago

0.9.2

4 months ago

0.9.0

5 months ago

0.9.1

5 months ago

0.8.46

5 months ago

0.8.45

5 months ago

0.8.44

6 months ago

0.8.41

7 months ago

0.8.40

7 months ago

0.8.43

7 months ago

0.8.42

7 months ago

0.8.36

8 months ago

0.8.38

7 months ago

0.8.37

8 months ago

0.8.39

7 months ago

0.8.34

8 months ago

0.8.35

8 months ago

0.8.33

8 months ago

0.8.32

9 months ago

0.8.30

9 months ago

0.8.31

9 months ago

0.8.23

10 months ago

0.8.22

11 months ago

0.8.25

10 months ago

0.8.24

10 months ago

0.8.21

11 months ago

0.8.20

11 months ago

0.8.27

10 months ago

0.8.26

10 months ago

0.8.29

9 months ago

0.8.28

10 months ago

0.8.14

1 year ago

0.8.19

12 months ago

0.8.16

1 year ago

0.8.15

1 year ago

0.8.18

12 months ago

0.8.17

12 months ago

0.8.13

1 year ago

0.8.12

1 year ago

0.8.11

1 year ago

0.8.10

1 year ago

0.8.9

1 year ago

0.8.8

1 year ago

0.8.7

1 year ago

0.8.6

1 year ago

0.8.5

1 year ago

0.8.4

1 year ago

0.8.3

1 year ago

0.8.2

1 year ago

0.8.1

1 year ago

0.8.0

2 years ago

0.7.51

2 years ago

0.7.50

2 years ago

0.7.37

2 years ago

0.7.36

2 years ago

0.7.39

2 years ago

0.7.38

2 years ago

0.7.44

2 years ago

0.7.43

2 years ago

0.7.46

2 years ago

0.7.45

2 years ago

0.7.40

2 years ago

0.7.42

2 years ago

0.7.41

2 years ago

0.7.48

2 years ago

0.7.47

2 years ago

0.7.49

2 years ago

0.7.35

2 years ago

0.7.34

2 years ago

0.7.33

2 years ago

0.7.32

2 years ago

0.7.31

2 years ago

0.7.30

2 years ago

0.7.29

2 years ago

0.7.28

2 years ago

0.7.27

2 years ago

0.7.24

2 years ago

0.7.26

2 years ago

0.7.25

2 years ago

0.7.22

2 years ago

0.7.21

2 years ago

0.7.20

2 years ago

0.7.19

2 years ago

0.7.18

3 years ago

0.7.15

3 years ago

0.7.17

3 years ago

0.7.16

3 years ago

0.7.11

3 years ago

0.7.10

3 years ago

0.7.13

3 years ago

0.7.14

3 years ago

0.7.9

3 years ago

0.7.8

3 years ago

0.7.2

3 years ago

0.7.6

3 years ago

0.7.5

3 years ago

0.7.7

3 years ago

0.7.1

3 years ago

0.7.0

3 years ago

0.6.1

3 years ago

0.6.0

3 years ago

0.5.0

3 years ago

0.5.2

3 years ago

0.5.1

3 years ago

0.4.5

3 years ago

0.4.4

3 years ago

0.4.7

3 years ago

0.4.6

3 years ago

0.4.1

4 years ago

0.4.0

4 years ago

0.4.3

4 years ago

0.4.2

4 years ago

0.3.25

4 years ago

0.3.24

4 years ago

0.3.23

4 years ago

0.3.22

4 years ago

0.3.21

4 years ago

0.3.20

4 years ago

0.3.19

4 years ago

0.3.18

4 years ago

0.3.17

4 years ago

0.3.16

4 years ago

0.3.15

4 years ago

0.3.14

4 years ago

0.3.13

4 years ago

0.3.12

4 years ago

0.3.11

4 years ago

0.3.10

4 years ago

0.3.9

4 years ago

0.3.8

4 years ago

0.3.7

4 years ago

0.3.6

4 years ago

0.3.3

4 years ago

0.2.24

4 years ago

0.3.0

4 years ago

0.3.1

4 years ago

0.2.23

4 years ago

0.2.22

4 years ago

0.2.21

4 years ago

0.2.20

4 years ago

0.2.19

4 years ago

0.2.18

4 years ago

0.2.17

4 years ago

0.2.16

4 years ago

0.2.15

4 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

5 years ago

0.2.1

5 years ago

0.2.0

5 years ago

0.1.41

5 years ago

0.1.40

5 years ago

0.1.39

5 years ago

0.1.38

5 years ago

0.1.37

5 years ago

0.1.36

5 years ago

0.1.35

5 years ago

0.1.34

5 years ago

0.1.31

5 years ago

0.1.32

5 years ago

0.1.33

5 years ago

0.1.30

5 years ago

0.1.29

5 years ago

0.1.28

5 years ago

0.1.26

5 years ago

0.1.25

5 years ago

0.1.24

5 years ago

0.1.23

5 years ago

0.1.22

5 years ago

0.1.21

5 years ago

0.1.20

5 years ago

0.1.19

5 years ago

0.1.18

5 years ago

0.1.17

5 years ago

0.1.16

5 years ago

0.1.15

5 years ago

0.1.14

5 years ago

0.1.13

5 years ago

0.1.12

5 years ago

0.1.11

5 years ago

0.1.10

5 years ago

0.1.9

5 years ago

0.1.8

5 years ago

0.1.7

5 years ago

0.1.6

5 years ago

0.1.5

5 years ago

0.1.4

5 years ago

0.1.3

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago

0.0.1

5 years ago