Reactionv 1.0.1ui

Getting Started


You can install Reaction-ui from npm using

Components


Avatars

Avatar can be used to display a user.

Props

NameTypeDescription
typeString : ['boy','girl']Specifies the type of default avatar type (required)
sizeNumberDefines the size of the avatar
srcStringSpecifies the path/link for the image

Buttons

A button is a way to ask users for action

Primary Button

Example

Props

NameTypeDescription
fontFamilyStringDefines the font style in the button
fontWeightNumberDefines the weight of the font in button
fontSizeNumberSpecifies the size of the fonts in pixels
borderRadiusNumberCorner radius of the button
colorString:[Hex Code]Color of the font/icon in button
bgColorString:[Hex Code]Background Color of the button
shadowBooleanShadow for the button
iconRightBooleanTo add icon on right side of text for button
iconLeftBooleanTo add icon on left side of text for button

Secondary Button

Props

NameTypeDescription
fontFamilyStringDefines the font style in the button
fontWeightNumberDefines the weight of the font in button
fontSizeNumberSpecifies the size of the fonts in pixels
borderRadiusNumberCorner radius of the button
colorString:[Hex Code]Color of the font/icon in button and border
bgColorString:[Hex Code]Background Color of the button on Hover
hoverColorString:[Hex Code]Color for the button on Hover
iconRightBooleanTo add icon on right side of text for button
iconLeftBooleanTo add icon on left side of text for button

Ghost Button

Props

NameTypeDescription
fontFamilyStringDefines the font style in the button
fontWeightNumberDefines the weight of the font in button
fontSizeNumberSpecifies the size of the fonts in pixels
colorString:[Hex Code]Color of the font/icon in button and border

Icon Button

Props

NameTypeDescription
sizeNumberSpecifies the size of the icon in pixels
borderRadiusNumberCorner radius of the button
colorString:[Hex Code]Color of the icon
bgColorString:[Hex Code]Background Color of the button on Hover/Background
shadowBooleanShadow for the button

Inputs

A button is a way to ask users for action

Text Box

Props

NameTypeDescription
fontFamilyStringDefines the font style in the button
fontWeightNumberDefines the weight of the font in button
fontSizeNumberSpecifies the size of the fonts in pixels
borderRadiusNumberCorner radius of the button
colorString:[Hex Code]Color of the font/icon in button
bgColorString:[Hex Code]Background Color of the button
fullWidthBooleanDefines the 100% width of input

Text Area

Props

NameTypeDescription
fontFamilyStringDefines the font style in the button
fontWeightNumberDefines the weight of the font in button
fontSizeNumberSpecifies the size of the fonts in pixels
borderRadiusNumberCorner radius of the button
colorString:[Hex Code]Color of the font/icon in button
bgColorString:[Hex Code]Background Color of the button

Checkbox

Props

NameTypeDescription
sizeNumberSpecifies the size of the Checkbox pixels
borderRadiusNumberCorner radius of the Checkbox
checkmarkColorString:[Hex Code]Color of the checkmark in checkbox
bgColorString:[Hex Code]Background Color of the Checkbox
hoverBgString:[Hex Code]Background Color of the Checkbox on Hover event
bgOnCheckString:[Hex Code]Background Color of the Checkbox after checked
defaultCheckedBooleanTo check the box by default

Toggle

Props

NameTypeDescription
sizeNumberSpecifies the size of the Checkbox pixels
switchColorString:[Hex Code]Color of the switch/thumb
toggleOffColorString:[Hex Code]Color of toggle when OFF
toggleOnColorString:[Hex Code]Color of toggle when ON
defaultCheckedBooleanTo keep toggle ON default

Layouts

Pure Layout of CSS FlexBox and 12 Column Grid

Stack

Props

NameTypeDescription
fullWidthBooleanDefines the 100% width of div
justifyStringJustify the flex items
itemsStringAligns the flex items on cross axis
directionStringDirection of the Flex Container
paddingNumberPadding of the Flex Container
gapNumberGap between the flex items

Grid

Props

NameTypeDescription
rowGapNumberGap between the Gird Row
colGapNumberGap between the Gird Column
startNumberApplied only on Column to specify start grid line
endNumberApplied only on Column to specify end grid line

Fonts

Custom Fonts

Fonts

() => This is a Custom Font

Props

NameTypeDescription
fontFamilyStringDefines the font style
fontWeightNumberDefines the weight of the font
fontSizeNumberSpecifies the size of the fonts in pixels
borderRadiusNumberCorner radius of the backDrop
colorString:[Hex Code]Color of the font
backDropString:[Hex Code]Color of the back drop