1.0.0 • Published 4 years ago

@holusion/react-components-holusion v1.0.0

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

react-components-holusion : a collection of components made with react

Components

Button

A button is a clickable component that fits with its parent container https://material.io/design/components/buttons.html#specs

PropsTypesDescription
childrenstring or componentIt is the button content

Card

A card is a component that describe an item which can have an image and some interaction (like selection)

PropsTypesDescription
topOne or more componentsRepresents the top of the card
primaryOne or more componentsRepresents the all the card
bottomOne or more componentsRepresents the bottom of the card
imagestringThe background image

PlaylistItem

A PlaylistItem is a card that represents an item of a Playlist

PropsTypesDescription
itemobjectThe item that will be change in a card
imagestringThe background image

the props item should have this properties :

{
    "name": string,
    "rank": int,
    "active": bool,
    "_id": string
}

You can had options like this :

{
    "name": string,
    "rank": int,
    "active": bool,
    "_id": string,
    "options": {
        "onCheckboxChange": func(item, event),
        "onSwitchChange": func(item, event),
        "onClick": func(item, event),
        "onPlay": func(item, event),
        "onRemove": func(item, event),
        "current": bool,
        "selected": bool,
        "visible": bool,
        "image": string
    }
}

Playlist

A Playlist is a collection of PlaylistItem create by a collection of items

PropsTypesDescription
itemsarray of objectA collection of items that will be passed on PlaylistItem
1.0.0

4 years ago

1.0.0-beta.2

4 years ago

1.0.0-beta.1

4 years ago

1.0.0-beta.0

5 years ago

1.0.0-alpha.2

5 years ago

1.0.0-alpha.1

5 years ago

1.0.0-alpha.0

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago