0.1.16 • Published 3 years ago

web-components-phionike v0.1.16

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

web-components-phionike

A React Library containing basic UI components.

Installing

npm install web-components-phionike

Dependencies

npm install styled-components

Components

Avatars

import { Avatars } from 'web-components-phionike';

props

AttributeValuesDefaultDescription
size"xs" : "s" : "m" : "xm" : "l" : "xl"mThe size of Avatar.
modesquare : circlesquareThe shape of Avatar.
src-NULLThe source location of Avatar image.

Banner

import { Banner } from 'web-components-phionike';

props

AttributeValuesDefaultDescription
backgroundColorString#FAFAFAThe color of Banner.
image-NULLThe source location of Avatar image.
button1String#FAFAFAThe bgColor of button1.
button1ColorString#0B5FFFThe color of button1.
button2String#FAFAFAThe bgColor of button2.
button2ColorString#0B5FFFThe color of button2.
borderRadiusInteger0Border Radius of Banner.
button1OnClick()=>{}nullCall to action of Button 1.
button2OnClick()=>{}nullCall to action of Button 2.

Button

import { Button } from 'web-components-phionike';

props

AttributeValuesDefaultDescription
size"small" : "medium" : "large"mediumThe size of Button.
radiusInteger8The border-radius of Button.
primaryBooleanfalseThe background-color of Button.
onClick()=>{}nullCall to action of Button.

Buttonicon

import { Buttonicon } from 'web-components-phionike';

props

AttributeValuesDefaultDescription
icon-PlusIconIcon of Buttonicon.
radiusInteger8Border Radius of Buttonicon.
sizeInteger52The width & height of Buttonicon.
disabledBooleanfalseDisable or Enable Buttonicon.
primaryBooleanfalsePrimary or Default Buttonicon.
onClick()=>{}nullCall to action of Button.

Chips

import { Chips } from 'web-components-phionike';

props

AttributeValuesDefaultDescription
disableBooleanfalseDisable Chip.
labelStringChip LabelThe label of Chip.
avatar-imgThe source location of Avatar image.
avatarVisibleBooleantrueThe visibility of Avatar.
crossVisibleBooleantrueThe visibility of Cross Icon.

Circular Progress

import { CircularProgressBar } from 'web-components-phionike';

props

AttributeValuesDefaultDescription
strokeWidthInteger10Width of Color Indicator Strip.
percentageInteger50Percentage Progress Completed.
widthInteger50The total width of Indicator.
heightInteger50The total height of Indicator.
colorString#0B5FFFThe color of Indicator.

Input

import { Input } from 'web-components-phionike';

props

AttributeValuesDefaultDescription
placeholderStringTextThe placeholder of Input.
labelStringLabelThe label of Input.
successBooleanfalseError-free Input.
successTextStringSuccess MessageThe Success Message of Input.
errorBooleanfalseError Input.
errorTextStringError MessageThe Error Message of Input.

Progress Indicators

import { ProgressIndicators } from 'web-components-phionike';

props

AttributeValuesDefaultDescription
bgColorString#0B5FFFThe background-color of Indicator.
countBooleanfalseThe count meter of Indicator.

Sidebar

import { Sidebar } from 'web-components-phionike';

props

AttributeValuesDefaultDescription
themelight : darkdarkTheme of the Sidebar.
logoIcon-default imgMain Site Logo.
logoTextStringlogoMain Site Name.
sectionsArraysectionsSubsections of the Sidebar.
sections = [
	{icon:  TN,
	text:  "module 1",
	link:  "https://www.google.com",
	},
	{
	icon:  TN,
	text:  "module 2",
	link:  "https://www.google.com",
	},
]

Snackbar

import { Snackbar } from 'web-components-phionike';

props

AttributeValuesDefaultDescription
textStringLorem IpsumThe text of Snackbar.
actionStringSmall ButtonThe title of action button.
showBooleanfalseToggle visibility.
successTextStringSuccess MessageThe Success Message of Input.
setShowBooleanfalseSetter Function for toggling show.
actionBtnBooleanfalseAction Button visibility.

Tooltip

import { Tooltip } from 'web-components-phionike';

props

AttributeValuesDefaultDescription
pointerBooleanfalsePointer.
contentStringThis is a tooltipText of the Tooltip.
directiontop : left: right: bottomtopLocation of Tooltip.
textColorStringwhiteThe Color of Message of Tooltip.
delayInteger400Time delay to show Tooltip.

NotifWrapper

import { NotifWrapper } from 'web-components-phionike';

props

AttributeValuesDefaultDescription
themelight : darkdarkTheme of the NotifWrapper.
wrapperstateNULLstate of NotifWrapper.
setWrappersetter functionNULLstate updation function of NotifWrapper.
drawerSizeInteger200Width of the notification wrapper.

Navbar

import { Navbar } from 'web-components-phionike'

props

AttributeValuesDefaultDescription
bgColorString#B9C0C5The background-color of Navbar.
colorString#20272CColor of the text.
icon-SideNavIconIcon of Logo inside navbar.
linksObjectlinksNavigation Links of navbar.
links={
	product:{},
	overview:{
		link1: "link-1",
    		link2: "link-2",
		},
	contact:{}
}

Responsive Navbar

import { ResponsiveNavbar } from 'web-components-phionike'

props

AttributeValuesDefaultDescription
bgColorString#B9C0C5The background-color of Navbar.
colorString#20272CColor of the text.
icon-SideNavIconIcon of Logo inside navbar.
linksObjectlinksNavigation Links of navbar.
links={
	product:{},
	overview:{
		link1: "link-1",
    		link2: "link-2",
		},
	contact:{}
}

Modal

import { Modal } from 'web-components-phionike'

props

AttributeValuesDefaultDescription
size"small" : "medium" : "large" : "extraLarge"smallThe size of Modal.
titleStringModal TitleTitle of the modal.
contentStringModal ContentContent inside the modal.
primaryBooleanfalseThe background-color of Button.
button1TextStringButtonText of the button1.
button2TextString""Text of the button2.
showModalBooleanfalseToggle visibility.
button1OnClick()=>{}nullCall to action of Button 1.
button2OnClick()=>{}nullCall to action of Button 2.

About

Contributors

Shubh Nisarhttps://shubh-nisar.github.io
Tanay Naikwww.linkedin.com/in/tanay-naik-9693831a4