8000 GitHub - dbtek/choo-content: Components for data driven apps in choo
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

dbtek/choo-content

8000

Repository files navigation

choo-content

npm version build status downloads js-standard-style

Components for data driven apps in choo

Install

$ yarn add choo-content

Usage

choo-content depends on styles from Tailwind. You may add it via sheetify. It's also dependent to choo-component-preview until it's merged to core.

Example

var List = require('choo-content/list')

// User list component
class UsersList extends List {
  static identity () {
    return 'users-list' // should be unique within components
  }

  getItems () {
    return this.state.users
  }
}

// render
(state, emit, render) => {
  render(UsersList, {})
}

Please see complete example at example/index.js.

Author

İsmail Demirbilek - @dbtek

About

Components for data driven apps in choo

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published
0