If we are creating new content component and extends Component from substance we are getting state handling right out of the box. The different states we have more general, selected and focused. With this we can render different content and style based of that. A good example of component are the Image component in the content area.
Components styles
We have introduced a type property so you can send in a space separated string ("primary small disabled") for the latest of our components for give the component different styles. In that way it's easy to add and remove styles without extending the component props list and keep it more slim and readable.
See more example for UIButton and UIChip below.
For technical implementation see UI Components: UIButton
Following properties decide style of the button.
Type (Optional)
To give the UIButton different style you should use the property type. You can provide different style with just applying different style with space (" "). It doesn't matter in which order it's applied. Default: primary
For more real example see example section below with pictures and example code.
Default, primary, alert etc.
Should be added if button is used on dark background
Often used together with a primary button
Text styled button can be combined with color
Size (Optional)
You also have the property size that can determines different style to the button
Width (Optional)
You also have the property width that can determines different style to the button
Icon (Optional)
Icon property is used with Font Awesome 4.0 naming.
Styles and examples
This is standard button available in the Writer Examples
Buttons on dark background Examples
Examples
Examples
For technical implementation see UI Components: UIButtonGroup
For technical implementation see: UI Components: UIIconButton
For technical implementation see: UI Components: UIChip
Styles and examples
Default default. {Writer Color}
Default: normal. large|normal|small
Examples
For technical implementation see: UI Components: UICheckbox
Styles and examples
For technical implementation see: UI Components: UIToggle
Styles and examples
For technical implementation see: UI Components: UITextarea
Styles and examples
For technical implementation see: UI Components: UIInputText
Styles and examples
For technical implementation see: UI Components: UISelect
Styles and examples
Used together with other components as complement. For example when presentation avatar in lists or in UIChip.
For technical implementation see: UI Components: UIAvatar
Styles and examples
Could be used inside list For technical implementation see: UI Components: UIDatePicker
Styles and examples
UIDatePicker can be used with two styles default or secondary You can apply prefix to presentation Developed together with UIDatePicker. See sizes and prefix on UIDatePicker
For technical implementation see: UI Components: UITimePicker
Styles and examples
An editor component that lets the user edit text fields on a node.
For technical implementation see: UI Components: UIFieldEditor
Styles and examples
Inline image component which rerenders itself when its FileNode is loaded.
For technical implementation see: UI Components: UIInlineImage
Styles and examples