6.1.5 • Published 1 year ago

@axa-ch/top-content-bar v6.1.5

Weekly downloads
451
License
Copyright 2019 AX...
Repository
github
Last release
1 year ago

Top content bar

Used as top of the page warning or info box that can show text and have a call to action button. It can also be display at the bottom of the screen on mobile devices (see below for the stickymobile attribute).

There is also the possibility to add child elements.

Properties

Variant

AttributeDetails
variant="warning"Show a red top content bar as a warning banner

ctatext

The attribute ctatext specifies the text displayed on the button. If no attribute href is set, it will render an axa-button and the onClick callback will trigger upon click. If ctatext is omitted, no button will be shown.

href

The attribute href specifies the link, that should be opened by pressing on the button with the text defined in ctatext. This is mainly for semantic reasons, you still need to forward the user to the new location, by listening to the onClick callback. Just providing the href attribute will not do anything by itself.

icon

Using the string-valued attribute icon as icon name, an icon will be rendered. To see the full list of possible icons, see the axa-icon README.

stickymobile

Set the Boolean attribute stickymobile to true to display the bar at the bottom of the screen on mobile devices with width < 576px.

closable

Set the Boolean attribute closable to true to display the Close button. Once the bar is closed it will not be displayed any more during that browser session.

closed

The Boolean property closed can be used to hide or show the bar on the page. We use this property after we check the sessionStorage item top-content-bar-closed.

onClick

The function-valued attribute onClick can be used as a callback prop for React and other frameworks.

6.1.4

1 year ago

6.1.5

1 year ago

6.1.0

1 year ago

6.1.2

1 year ago

6.1.1

1 year ago

6.1.3

1 year ago

6.0.8

2 years ago

6.0.7

2 years ago

6.0.6

2 years ago

6.0.5

2 years ago

6.0.4

2 years ago

5.0.2

2 years ago

5.0.1

2 years ago

6.0.1

2 years ago

6.0.0

2 years ago

6.0.3

2 years ago

6.0.2

2 years ago

5.0.0

2 years ago

4.1.0

2 years ago

4.1.2

2 years ago

4.1.1

2 years ago

4.0.24

3 years ago

4.0.23

3 years ago

4.0.22

3 years ago

4.0.20

3 years ago

4.0.19

3 years ago

4.0.16

3 years ago

4.0.18

3 years ago

4.0.17

3 years ago

4.0.15

3 years ago

4.0.14

3 years ago

4.0.13

3 years ago

4.0.12

3 years ago

4.0.11

3 years ago

4.0.10

3 years ago

4.0.9

3 years ago

4.0.7

3 years ago

4.0.6

3 years ago

4.0.5

3 years ago

4.0.4

4 years ago

4.0.3

4 years ago

4.0.2

4 years ago

4.0.1

4 years ago

4.0.0

4 years ago

3.2.13

4 years ago

3.2.12

4 years ago

3.2.11

4 years ago

3.2.10

4 years ago

3.2.9

4 years ago

3.2.8

4 years ago

3.2.6

4 years ago

3.2.5

4 years ago

3.2.4

4 years ago

3.2.3

4 years ago

3.2.2

4 years ago

3.2.1

4 years ago

3.2.0

4 years ago

3.1.0

4 years ago

3.0.5

4 years ago

3.0.4

4 years ago

3.0.3

4 years ago

3.0.2

4 years ago

3.0.1

4 years ago

3.0.0

4 years ago

2.0.13

4 years ago

2.0.12

4 years ago

2.0.11

4 years ago

2.0.10

4 years ago

2.0.9

4 years ago

2.0.8

4 years ago

2.0.7

4 years ago

2.0.6

4 years ago

2.0.5

4 years ago

2.0.4

4 years ago

2.0.3

4 years ago

2.0.2

4 years ago

2.0.1

4 years ago

2.0.0

4 years ago

1.0.25

4 years ago

1.0.24

4 years ago

1.0.23

5 years ago

1.0.22

5 years ago

1.0.21

5 years ago

1.0.20

5 years ago

1.0.19

5 years ago

1.0.18

5 years ago

1.0.17

5 years ago

1.0.16

5 years ago

1.0.15

5 years ago

1.0.14

5 years ago

1.0.13

5 years ago

1.0.12

5 years ago

1.0.11

5 years ago

1.0.10

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.1-alpha.5

5 years ago

1.0.1-alpha.4

5 years ago

1.0.1-alpha.3

5 years ago

1.0.1-alpha.2

5 years ago

1.0.1-alpha.1

5 years ago

1.0.0

5 years ago