Armstrong React - Rocketmakers React component library.
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";
Center content has been deprecated and is replaced with 2 new properties. HorizontalAlignment and Vertical alignment.
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
This is no more! Just write the markup <Row><Col></Col></Row>
or make your own component. It was messy and unmaintainable before
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.
- 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 callsetLocale
once, probably on app startup.
Dropdownselect has been renamed to AutoCompleteInput to better reflect what it actually does
CheckboxInput now takes "labelContent" which can be a string or a component. Previously it only supported a "label" string
A library of components for React/SCSS interface development.
WARNING!: This library assumes you're using React and SASS.
Install via npm
npm i armstrong-react --save