Skip to content

Latest commit

 

History

History
60 lines (42 loc) · 1.71 KB

File metadata and controls

60 lines (42 loc) · 1.71 KB

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