0.3.6 • Published 4 years ago

@luminu/components v0.3.6

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

@luminu/components

Setup

  • npm run serve

Deployment

Documentation

Button

Props

Namerequired/defaulttypedescription
texttrueStringSets the button's text
sizefalse / normalStringSets the button's size (small, big)
typefalse / normalStringSets the button's type (success, error)
disabledfalse / falseBooleanSets the button's disabled state

Seperator

Props

Namerequired/defaulttypedescription
mtopfalse / 5NumberSets the top margin of the seperator
mbottomfalse / 5NumberSets the bottom margin of the seperator

Notification

Props

Namerequired/defaulttypedescription
messagetrueStringSets the message that will be displayed
activityfalse / 0NumberSets it's activity state (Increment to activate/set to negative to disable)
timeoutfalse / 2500NumberSets the timeout when it should fade out again
fontSizefalse / 24NumberSets the font size for the notification message

Card

Props

Namerequired/defaulttypedescription
highlightfalse / falseBooleanMarks the card as highlighted

Loader

Props

Namerequired/defaulttypedescription
mtopfalse / 0NumberSets the top margin of the loader
mbottomfalse / 0NumberSets the bottom margin of the loader
justifyCenterfalse / falseBooleanDeclares whether the loader should be aligned to the horizontal middle or not
sizefalse / 24NumberSets the size of the loader

Alert

Published Events

Namedatatype
LM_ALERT_RESPONSEstatus{ isSuccess: boolean, message: string, title: string }

StickyHeader

Props

Namerequired/defaulttypedescription
linkstrueArray(TLink)Sets the displayed links
activefalse / -1NumberSets which dropdown is pressed
typefalse / 'defaultLogin'StringSets the login type
usernamefalse / ""StringSets the displayed username
userIdfalse / -1NumberSets the user id
hasAvatarfalse / falseBooleanIf a user has an avatar his personal avatar will be displayed
notLoggedInActionfalse / {}AnySets login action (View integration test for implementation)
dropdownItemsfalse / []ArraySets the dropdown items (View integration test for implementation)

Footer

Props

Namerequired/defaulttypedescription
partnerstrueArray(TPartners)Sets the actively displayed partners

Tabs

Props

Namerequired/defaulttypedescription
tabstrueArray(string)Sets the name of the displayed tabs
activefalse / 0numberSets the currently active tab

Published Events

Namedatatype
LM_CHANGED_TABindexnumber