UNPKG

@discoveryjs/discovery

Version:

Frontend framework for rapid data (JSON) analysis, shareable serverless reports and dashboards

25 lines (24 loc) 612 B
export default (view, group) => ({ demo: { view, text: 'hello world' }, examples: [ { title: 'Variations', demo: group.map(name => [ `${name}:"${name}"`, `${name}:"${name}\\nmulti-line"`, `${name}:"${name}\\nmulti-line\\nmore..."` ]).flat() }, { title: 'Complex content', highlightProps: ['content'], demo: { view, content: ['text:"text"', 'link:"#example"', 'text:"text"'] } } ] });