1.12.0 • Published 2 years ago
@s-ui/react-list-bullet v1.12.0
ListBullet
Bullet list component It has two behaviours, standard, responsive and responsive block.
Installation
$ npm install @s-ui/react-list-bullet --save
Usage
Basic usage
import ListBullet from '@s-ui/react-list-bullet'
const listItems = [
{
illustration: 'https://s.ccdn.es/images/motivation-search.svg',
title: 'Publica con total seguridad',
text:
'Te damos todas las herramientas para un proceso de venta seguro'
},
{
illustration: 'https://s.ccdn.es/images/motivation-trust.svg',
title: 'Gestiona tu anuncio según tus necesidades',
text: 'Edita y renueva tu anuncio tantas veces como necesites'
}
]
return (<ListBullet listItems={listItems} />)
Responsive usage
import ListBullet from '@s-ui/react-list-bullet'
const listItems = [
{
illustration: 'https://s.ccdn.es/images/motivation-search.svg',
title: 'Publica con total seguridad',
text:
'Te damos todas las herramientas para un proceso de venta seguro'
},
{
illustration: 'https://s.ccdn.es/images/motivation-trust.svg',
title: 'Gestiona tu anuncio según tus necesidades',
text: 'Edita y renueva tu anuncio tantas veces como necesites'
}
]
return (<ListBullet listItems={listItems} responsive="responsive" />)
Responsive Block usage
import ListBullet from '@s-ui/react-list-bullet'
const listItems = [
{
illustration: 'https://s.ccdn.es/images/motivation-search.svg',
title: 'Publica con total seguridad',
text:
'Te damos todas las herramientas para un proceso de venta seguro'
},
{
illustration: 'https://s.ccdn.es/images/motivation-trust.svg',
title: 'Gestiona tu anuncio según tus necesidades',
text: 'Edita y renueva tu anuncio tantas veces como necesites'
}
]
return (<ListBullet listItems={listItems} responsive="responsiveBlock" />)
Find full description and more examples in the demo page.