UI Components
Last updated
Was this helpful?
Last updated
Was this helpful?
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.
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.
Icons made and provided through the writer and used by UI components. When we're referring to icons this if the icons you can use.
Following properties decide style of the button.
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.
Type
Description
{WRITER-COLOR}
Default, primary, alert etc.
outlined
Get outline version
dark
Should be added if button is used on dark background
secondary
Often used together with a primary button
text
Text styled button can be combined with color
You also have the property size that can determines different style to the button
Type
Description
large
small
You also have the property width that can determines different style to the button
Type
Description
block
full
Icon property is used with Font Awesome 4.0 naming.
Examples
Examples
Examples
Examples
Property
Description
type (optional)
Default default. {Writer Color}
size (optional)
Default: normal. large|normal|small
Examples
Used together with other components as complement. For example when presentation avatar in lists or in UIChip.
Developed together with UIDatePicker. See sizes and prefix on UIDatePicker
An editor component that lets the user edit text fields on a node.
Inline image component which rerenders itself when its FileNode is loaded.
Byline component that will allow you to add authors to content
Property
Description
size (optional)
Default: normal. huge | large | normal | small | tiny
Rounded (default)
Square
Append weight to name if you take the name from above link
Append weight to name if you take the name from above link
Available icon for specific Writer version can be seen here:
For technical implementation see
For technical implementation see
For technical implementation see:
For technical implementation see:
For technical implementation see:
For technical implementation see:
For technical implementation see:
For technical implementation see:
For technical implementation see:
For technical implementation see:
For technical implementation see:
For technical implementation see:
For technical implementation see:
For technical implementation see:
For technical implementation see:
For technical implementation see:
For technical implementation see:
For technical implementation see:
For technical implementation see:
For technical implementation see: UI Components:
For available icons see
For technical implementation see:
For available icons see
For technical implementation see:
For available icons see
For technical implementation see: