Skip to content

A combination of react components and SCSS to make getting started with a new site quick and simple

License

Notifications You must be signed in to change notification settings

travellocal/armstrong-react

Repository files navigation

armstrong-react

Armstrong React - Rocketmakers React component library.

1.0 Breaking changes

Imports

All virtual classes have been removed. Don't extend armstrong classes in your css or you WILL get duplication issues. This is due to how TSX and SCSS imports work. There are also now more files to import to cut down on size. They are self explanatory and as follows:

@import "~armstrong-react/dist/imports";
@import "~armstrong-react/dist/style";
@import "~armstrong-react/dist/form";
@import "~armstrong-react/dist/responsive";
@import "~armstrong-react/dist/navigation";

Grid - CenterContent

Center content has been deprecated and is replaced with 2 new properties. HorizontalAlignment and Vertical alignment.

Grid - Fixed on row and col

Rows now take a height prop which supports either a number or the string 'auto'. Cols are the same but with a width property. You can now also use XAML-style star widths/heights. For example a 2 col layout with width='1*' and a width='2*' would split into a 1 3rd 2 3rds ratio

Grid - SingleColumnRow

This is no more! Just write the markup <Row><Col></Col></Row> or make your own component. It was messy and unmaintainable before

Button

Button no longer has a text property. You can pass anything, be it text or a component as its child. Shadows have been removed by default, if you want them add the class shadow. The default bottom margin has been removed to make it more flexible. Just pad your container or add m-bottom-small if you'd like a margin.

Form - Calendar & Datepickers

  • TimeSelector is no more
  • DatepickerInput has been renamed CalendarInput.
  • There are also now DateInput and TimeInput controls.
  • CalendarInput now only takes strings, so moment.js is now just an implementation detail
  • CalendarInput no longer takes a locale prop. Instead import ArmstrongConfig and call setLocale once, probably on app startup.

Form - Dropdownselect

Dropdownselect has been renamed to AutoCompleteInput to better reflect what it actually does

Form - Checkbox

CheckboxInput now takes "labelContent" which can be a string or a component. Previously it only supported a "label" string

Introduction

A library of components for React/SCSS interface development.

Getting Started

WARNING!: This library assumes you're using React and SASS.

Installation

Install via npm

npm i armstrong-react --save

Consumed Libraries

About

A combination of react components and SCSS to make getting started with a new site quick and simple

Resources

License

Stars

Watchers

Forks

Packages

No packages published