Skip to content

Latest commit

 

History

History
51 lines (40 loc) · 1.69 KB

File metadata and controls

51 lines (40 loc) · 1.69 KB

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

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

isAudio

API Documentation

{ () => { const type = UI.rdf.namedNode('http://www.w3.org/ns/iana/media-types/audio/') UI.store.add(UI.rdf.namedNode('http://example.com/audio.mpeg'), UI.ns.rdf('type'), type) return UI.widgets.isAudio(UI.rdf.namedNode('http://example.com/audio.mpeg')) } }

isVideo

API Documentation

{ () => { const type = UI.rdf.namedNode('http://www.w3.org/ns/iana/media-types/video/') UI.store.add(UI.rdf.namedNode('http://example.com/video.mov'), UI.ns.rdf('type'), type) return UI.widgets.isVideo(UI.rdf.namedNode('http://example.com/video.mov')) } }

isImage

API Documentation

{ () => { const type = UI.rdf.namedNode('http://www.w3.org/ns/iana/media-types/image/') UI.store.add(UI.rdf.namedNode('http://example.com/image.jpeg'), UI.ns.rdf('type'), type) return UI.widgets.isImage(UI.rdf.namedNode('http://example.com/image.jpeg')) } }