0.0.6 • Published 7 years ago

react-foundation-lib v0.0.6

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

react-foundation-components

A collection of Foundation components for react

Components

List

  • Button
  • Column
  • Divider
  • Expand
  • Icon
  • Menu
  • MenuItem
  • MenuText
  • NumberField
  • Row
  • TextArea
  • TextField
  • Title

Features

ComponentCoreStyleInput & EventsOther
ButtonClassNames, VisibilityMouseEvents, Link, DisabledFloat
ColumnClassNames, VisibilityColumnStyle
DividerClassNames, Visibility
ExpandClassNames, Visibility
IconClassNames, VisibilityIconStyle
MenuClassNames, VisibilityMenuStyleContentExpand, Alignment, Orientation
MenuItemClassNames, VisibilityMouseEvents, LinkActive
MenuTextClassNames, Visibility
NumberFieldClassNames, VisibilityDataEvents, Disabled, InputField=number
RowClassNames, VisibilityRowStyleContentExpand, Gutters
TextAreaClassNames, VisibilityDataEvents, Disabled, InputField=string
TextFieldClassNames, VisibilityDataEvents, Disabled, InputField=string
TitleClassNames, Visibility

Types & Enums

Alignment Enum

  • Left
  • Right
  • Center
  • None

Size Enum

  • Small
  • Medium
  • Large
  • XLarge
  • XXLarge

Column Integer Type

number of columns to span

Acceptable Values: 1..12

Feature Description and Props

ClassNames

props

proptype
classNamestring
innerClassNamestring

Visibility

props

proptype
showbool

Float

props

proptype
floatALIGNMENT

Disabled

props

proptypedefault
disabledboolfalse

MouseEvents

props

proptype
onClickfunction

DataEvents

props

proptype
onChangefunction

InputField

props

proptypedefault
valuestring or number
labelstringnull
isInlinebool

Alignment

props

proptype
alignmentALIGNMENT

Active

props

proptype
isActivebool

Orientation

props

proptype
isVerticalbool
isHorizontalbool
verticalOnSIZE or [SIZE, ...]
horizontalOnSIZE or [SIZE, ...]

ContentExpand

props

proptype
isExpandedbool

MenuStyle

props

proptype
isSimplebool
isNestedbool
iconTopbool

IconStyle

props

proptype
iconstring

RowStyle

notes

xlargeUp and xxlargeUp only work if specified in foundation settings

see foundation docs

$breakpoint-classes: (small medium large xlarge);

props

proptype
smallUpCOLUMN
mediumUpCOLUMN
largeUpCOLUMN
xlargeUpCOLUMN
xxlargeUpCOLUMN
isColumnbool

Gutters

props

proptype
isCollapsedbool
collapseOnSIZE or [SIZE, ...]
uncollapseOnSIZE or [SIZE, ...]

ColumnStyle

notes

xlargeUp and xxlargeUp only work if specified in foundation settings

see foundation docs

$breakpoint-classes: (small medium large xlarge);

props

proptype
smallCOLUMN
mediumCOLUMN
largeCOLUMN
xlargeCOLUMN
xxlargeCOLUMN
centerOnSIZE or [SIZE, ...]
uncenterOnSIZE or [SIZE, ...]
offsetOn[SIZE, COLUMN] or [[SIZE, COLUMN], ...]
pushOn[SIZE, COLUMN] or [[SIZE, COLUMN], ...]
pullOn[SIZE, COLUMN] or [[SIZE, COLUMN], ...]
isEndbool

Link

notes

requires the use of react-router

props

propstype
linkstring

context

contexttype
routerreact-router object

Attributions

Inspired by react-foundation and react-slingshot