1.16.0 • Published 4 years ago

@schibstedspain/sui-cover-basic v1.16.0

Weekly downloads
-
License
MIT
Repository
-
Last release
4 years ago

CoverBasic

It shows an image an also accepts a list of buttons and children.

Usage

CoverBasic must have an src prop and might have a height prop too to define container height.

  • If height prop is not provided the container height will be set via Sass var $mah-cover-basic.
  • Use $c-cover-basic-bgsize Sass var to define the cover or contain background image style.
  • The CoverBasic container might have a click via handleClick prop.
  • Provide an array of buttons to be passed as childrens inside the CoverBasic container:
const buttons = [
    {
    label: 'To be a button with icon',
    handleClick: () => { alert('To be a button with icon...') },
    icon: IconArrowLeft
  },
  {
    label: 'Or not to be',
    handleClick: () => { alert('Or not to be') }
  }
]

Each button might have: label, icon and handleClick function. Multiple CoverBasic components might be allocated in the same page.

Please, if you find any issue report it here

1.16.0

4 years ago

1.15.0

5 years ago

1.14.0

6 years ago

1.13.0

6 years ago

1.12.0

6 years ago

1.11.0

6 years ago

1.10.0

6 years ago

1.9.0

7 years ago

1.8.0

7 years ago

1.7.0

7 years ago

1.6.0

7 years ago

1.5.0

7 years ago

1.4.0

7 years ago

1.3.0

7 years ago