UIPill

Pill component

Since: 7.2.0 (7.0.0)

Example

import {UIPill} from 'writer'

render($$) {
    const el = $$('div')

    return el.append(
        $$(UIPill, {
             text: 'I am a pill',
             type: 'primary',
             size: 'large',
             icon: 'picture-landscape-bold'
        })
    )
}

type

Available types

The UIButton.props.type has following variations:

Type dark is used on buttons on dark background