Naviga Writer
8.2.0
8.2.0
  • Naviga Writer
  • Release notes
    • 8.2.0
    • 8.1.7
    • 8.1.6
    • 8.1.5
    • 8.1.4
    • 8.1.3
    • 8.1.2
    • 8.1.1
    • 8.1
    • 8.0
    • 7.2
    • 7.1.0
    • 7.0.0
    • 6.5.x
    • 6.5.0
    • 6.4.1
    • 6.4.0
    • 6.3.5
    • 6.3.4
    • 6.3.3
    • 6.3.2
    • 6.3.1
    • 6.2.2
    • 6.2.1
    • 6.2.0
    • 6.1.2
    • 6.1.1
    • 6.1.0
    • 6.0.0
    • 5.3.0
  • Introduction
    • Authoring
    • Developing
    • Publishing
    • History
  • User Guide
    • Writer User Guide
      • Create a new article
      • Top bar
        • Setting menu
        • Article name
        • Search and replace words
        • Version history of an article
          • List of versions
          • Changes in each version
          • Restore to an older version
        • Locked article
        • Active Users
        • Copy article url
        • Save and publish flow
        • History Button
      • Content area
        • Image gallery
        • Embed map
        • Table
        • Teaser
        • Content part
        • HTML embed
        • Upload image
        • Upload PDF
        • Textstyles
        • Lists
        • Special character
        • Marker tool
      • Right Sidebar
        • Meta
          • Author
          • Channels
        • Integrations
        • Image and Article search
      • Bottom bar
        • Article information
        • Edit metadata on linked images
        • Article size
        • Text information
        • Language menu
      • Images User Guide
        • Upload images
        • Metadata of the image
        • Cropping images
        • Download
      • Personal Writer Template
      • Writer Keyboard Shortcuts
      • Text Management
      • Common questions when starting using Writer
  • Admin Guide
    • Configuration Files
    • Configurations Guide
      • Right Sidebar
      • Text Information
      • Content menu
    • Article Templates Configuration
    • Byline configuration
    • Language Configuration
    • Publish Flow
      • Default configuration definitions
      • Publish flow config details
      • Preconditions for roles in the publish flow
    • Generic Properties
      • Configuration
    • Image Services
      • ImEngine
      • Imgix
    • Plugins
      • Naviga developed plugins
        • Plugins in earlier versions of Writer
      • Deprecated Plugins
      • Third-party plugins
  • Developer guide
    • Upgrade Guides
      • 8.0 - Image/PDF upload changes
      • 8.0 - Opening an Article
    • Writer Plugin Development
      • Quickstart
      • Type Definitions (beta)
      • Plugin overview
      • Creating a content object plugin
      • Validation and hooks
      • Interacting with external resources
    • Writer Plugin Building Blocks
      • Package
      • Component
      • Node
      • Converter
      • Events
    • Writer Plugin Style Guide
      • CSS Guidelines
      • CSS variables, colors and fonts
      • UI Components
    • Tutorials
      • Popover & text analysis
      • Search & replace
      • Concept interaction
      • Integrating External Spell Checking
    • Infomaker NewsML
      • Overview
      • Important: About inline notes
      • Document relations and types
      • Extensions XSD
      • NewsItem
      • ConceptItem
      • PlanningItem
      • Examples
        • NewsItem - Text
        • NewsItem - Picture
        • NewsItem - PDF
        • ConceptItem - Author
        • ConceptItem - Category
        • ConceptItem - Channel
        • ConceptItem - Content Profile
        • ConceptItem - Event
        • ConceptItem - Organisation
        • ConceptItem - Person
        • ConceptItem - Place (point)
        • ConceptItem - Place (polygon)
        • ConceptItem - Section
        • ConceptItem - Story
        • ConceptItem - Topic
        • PlanningItem
    • Media Enrichment
      • Images
  • API Reference
    • Writer Api
      • Api
      • Article
      • Browser
      • Concept
      • ConceptService
      • Document
      • Events
      • NewsItem
      • Router
      • Ui
      • Upload
      • User
      • settings
      • History
      • Settings
    • UI Components
      • UIAvatar
      • UIButton
      • UIByline
      • UICheckbox
      • UIChip
      • UIDatePicker
      • UIDatetimeFieldEditor
      • UIDropdown
      • UIFieldEditor
      • UIIconButton
      • UIInlineImage
      • UIPagination
      • UISelect
      • UITimePicker
      • UIToggle
      • UITooltip
      • UIInputText
      • UITextarea
      • UIButtonGroup
      • UIConceptSearch
      • UIDateTimePicker
      • UIInputSearch
      • UIIcon
      • UIPill
      • UISpinner
      • UIButtonList
      • UIIconBadge
      • UIIconButtonMenu
      • UIInputPassword
Powered by GitBook
On this page
  • States
  • Components styles
  • Naviga Content Icon Pack
  • UIButton
  • Some styles and examples
  • UIButtonGroup
  • Implementation
  • UIIconButton
  • Implementation
  • Styles and examples
  • UIChip
  • Implementation
  • Styles and examples
  • UICheckbox
  • Implementation
  • Styles and examples
  • UIToggle
  • Implementation
  • Styles and examples
  • UITextarea
  • Implementation
  • Styles and examples
  • UIInputText
  • Implementation
  • Styles and examples
  • UISelect
  • Implementation
  • Styles and examples
  • UIAvatar
  • Implementation
  • Styles and examples
  • UIDatePicker
  • Implementation
  • Styles and examples
  • UITimePicker
  • Implementation
  • Styles and examples
  • UIFieldEditor
  • Implementation
  • Styles and examples
  • UIInlineImage
  • Implementation
  • Styles and examples
  • UIByline
  • Implementation
  • Styles and examples
  • UITooltip
  • Implementation
  • Styles and examples
  • UIPagination
  • Implementation
  • Styles and examples
  • UIDropdown
  • Implementation
  • Styles and examples
  • UIPill
  • Implementation
  • Styles and examples
  • UIIcon
  • Implementation
  • Styles and examples
  • UIButtonList
  • Styles and examples
  • UIIconBadge
  • Implementation
  • Styles and examples
  • UIIconButtonMenu
  • Implementation
  • Styles and examples

Was this helpful?

  1. Developer guide
  2. Writer Plugin Style Guide

UI Components

PreviousCSS variables, colors and fontsNextTutorials

Was this helpful?

Most of the UI component displayed here but for full list check out

States

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.

import {Component} from "substance"

class MyComponent extends Component {

    render($$) {
        // Default things

        const nodeState = this.props.isolatedNodeState

        if (nodeState === 'focused' || nodeState === 'selected') {
            // Present this
        } 
        else {
            // Do something else
        }
    }
}

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.

$$(UIButton, {
    'type': 'primary small'
})

See more example for UIButton and UIChip below.

Naviga Content Icon Pack

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.

UIButton

Some styles and examples

Examples

// Primary button
$$(UIButton, {
    type: 'primary'
})

// Default button
$$(UIButton, {
    type: 'default'
})

// Alert outlined
$$(UIButton, {
    type: 'alert outlined'
})
// Cancel button with 
$$(UIButton, {
    label: 'Cancel',
    type: 'secondary'
})

// Primary button
$$(UIButton, {
    label: 'Apply',
    type: 'primary'
})

Examples

// Dark outline button
$$(UIButton, {
    type: 'dark outlined'
})

// Dark Negative Primary button
$$(UIButton, {
    type: 'dark negative primary'
})

// Dark default
$$(UIButton, {
    type: 'dark default'
})

Examples

// Text Default button
$$(UIButton, {
    type: 'text default'
})

// Text Primary button
$$(UIButton, {
    type: 'text primary'
})

Examples

// Default icon button
$$(UIButton, {
    type: 'primary',
    icon: 'fa-plus'
})

// Text Primary icon button
$$(UIButton, {
    type: 'text primary',
    icon: 'fa-plus'
})

Width

// Block
$$(UIButton, {
    label: 'Block button',
    width: 'block'
})

Sizes

$$(UIButton, {
    label: 'Large',
    size: 'large'
})

// Default
$$(UIButton, {
    label: 'Default',
})

// Small
$$(UIButton, {
    label: 'Small',
    size: 'small'
})

UIButtonGroup

Implementation

UIIconButton

Implementation

Styles and examples

UIChip

Implementation

Styles and examples

Examples

$$(UIChip, {
    avatarUrl: 'https://urltoimage.com/nicklas.png',
    value: 'Nicklas Janresjö',
    type: 'alert'
})

UICheckbox

Implementation

Styles and examples

UIToggle

Implementation

Styles and examples

UITextarea

Implementation

Styles and examples

UIInputText

Implementation

Styles and examples

UISelect

Implementation

Styles and examples

UIAvatar

Used together with other components as complement. For example when presentation avatar in lists or in UIChip.

Implementation

Styles and examples

UIDatePicker

Implementation

Styles and examples

UITimePicker

Developed together with UIDatePicker. See sizes and prefix on UIDatePicker

Implementation

Styles and examples

UIFieldEditor

An editor component that lets the user edit text fields on a node.

Implementation

Styles and examples

UIInlineImage

Inline image component which rerenders itself when its FileNode is loaded.

Implementation

Styles and examples

UIByline

Byline component that will allow you to add authors to content

Implementation

Styles and examples

UITooltip

Implementation

Styles and examples

UIPagination

Implementation

Styles and examples

UIDropdown

Implementation

Styles and examples

Property

Description

size (optional)

Default: normal. huge | large | normal | small | tiny

UIPill

Implementation

Styles and examples

Rounded (default)

Square

UIIcon

Implementation

Append weight to name if you take the name from above link

Styles and examples

$$(UIIcon, {
    name: 'space-rocket-flying-regular',
    size: 20,
    color: '#000'
})

UIButtonList

Append weight to name if you take the name from above link

Styles and examples

UIIconBadge

Implementation

Styles and examples

UIIconButtonMenu

Implementation

Styles and examples

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:

Icons for Writer 7.0.0
Icons for Writer 7.1.0
Icons for Writer 7.2.0
Icons for Writer 8.0.0
Icons for Writer 8.1.0
UI Components: UIButton
UI Components: UIButtonGroup
UI Components: UIIconButton
UI Components: UIChip
UI Components: UICheckbox
UI Components: UIToggle
UI Components: UITextarea
UI Components: UIInputText
UI Components: UISelect
UI Components: UIAvatar
UI Components: UIDatePicker
UI Components: UITimePicker
UI Components: UIFieldEditor
UI Components: UIInlineImage
UI Components: UIByline
UI Components: UITooltip
UI Components: UIPagination
UI Components: UIDropdown
UI Components: UIPill
UIIcon
UI Components: UIButtonList
UI Components: UIIconBadge
UI Components: UIIconButtonMenu
Naviga Content Icon Pack
Naviga Content Icon Pack
Naviga Content Icon Pack
API / UI Components
Default state
Focus and selected state
This is standard button available in the Writer
Buttons on dark background
Could be used inside list
UIDatePicker can be used with two styles default or secondary
You can apply prefix to presentation
Available sizes
Default, on dark background and blurred version