Skip to content

Latest commit

 

History

History
56 lines (43 loc) · 1.28 KB

File metadata and controls

56 lines (43 loc) · 1.28 KB

import * as UI from '../../lib'

import { Canvas, Meta, Story } from '@storybook/addon-docs/blocks'

complain

API documentation

{ () => { const div = document.createElement("div"); UI.widgets.complain({ div, dom: document }, 'not good!') return div } }

errorMessageBlock

API documentation

{ () => { return UI.widgets.errorMessageBlock(document, 'my error message', '#f0f') } }

setName

Sets the best name we have and looks up a better one

API documentation

{ () => { const div = document.createElement("div") const jane = UI.rdf.namedNode('https://jane.example/person/card#me') UI.store.add(jane, UI.ns.foaf('name'), 'Jane Doe') UI.widgets.setName(div, jane) return div } }