{"id":16594029,"url":"https://github.com/jsdf/react-ratchet","last_synced_at":"2025-03-16T21:30:38.536Z","repository":{"id":26098912,"uuid":"29543017","full_name":"jsdf/react-ratchet","owner":"jsdf","description":"React components for the Ratchet mobile app UI library","archived":false,"fork":false,"pushed_at":"2016-02-24T05:58:08.000Z","size":31,"stargazers_count":86,"open_issues_count":1,"forks_count":12,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-15T04:55:49.658Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jsdf.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-01-20T17:47:22.000Z","updated_at":"2023-11-20T01:54:38.000Z","dependencies_parsed_at":"2022-09-16T07:51:16.945Z","dependency_job_id":null,"html_url":"https://github.com/jsdf/react-ratchet","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsdf%2Freact-ratchet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsdf%2Freact-ratchet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsdf%2Freact-ratchet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsdf%2Freact-ratchet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jsdf","download_url":"https://codeload.github.com/jsdf/react-ratchet/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243685560,"owners_count":20330982,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-11T23:44:50.660Z","updated_at":"2025-03-16T21:30:38.206Z","avatar_url":"https://github.com/jsdf.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-ratchet\n\nReact components for the [Ratchet](http://goratchet.com/components) UI Library\n\nUsed to build [Hacker News Mobile](http://hackernewsmobile.com/):\n\n![Hacker News Mobile](http://i.imgur.com/LxPE8su.jpg)\n\n## Documentation\n\n### Title\n```\n@prop [className] {String} Merges with the Ratchet predefined CSS classes\n```\nExample:\n```javascript\nvar Title = require('react-ratchet').Title;\nclass MyTitle extends React.Component {\n  render() {\n    return \u003cTitle\u003eHello World!\u003c/Title\u003e\n  }\n}\n```\n\n### NavBar  \n```\n@prop [className] {String} Merges with the Ratchet predefined CSS classes\n```\nExample:\n```javascript\nvar NavBar = require('react-ratchet').NavBar;\nclass MyNavBar extends React.Component {\n  render() {\n    return (\n        \u003cNavBar\u003e\n            \u003cTitle\u003eHello World!\u003c/Title\u003e\n        \u003c/NavBar\u003e\n    );\n  }\n}\n```\n\n### NavButton\n```\n@prop [right] {Boolean} The side of the nav the button will be displayed\n@prop [href] {String} If defined creates an anchor, else defaults to a button\n@prop [className] {String} Merges with the Ratchet predefined CSS classes\n```\nExample:\n```javascript\nvar NavButton = require('react-ratchet').NavButton;\nclass MyNavButton extends React.Component {\n  render() {\n    return (\n        \u003cNavButton right href='./next'\u003e\n            Next\n        \u003c/NavButton\u003e\n    );\n  }\n}\n```\n\n### TableView\n```\n@prop [className] {String} Merges with the Ratchet predefined CSS classes\n```\nExample:\n```javascript\nvar TableView = require('react-ratchet').TableView;\nvar TableViewCell = require('react-ratchet').TableViewCell;\nclass MyTableView extends React.Component {\n  render() {\n    return (\n        \u003cTableView\u003e\n            \u003cTableViewCell\u003eMy\u003c/TableViewCell\u003e\n            \u003cTableViewCell\u003eReact\u003c/TableViewCell\u003e\n            \u003cTableViewCell\u003eRatchet\u003c/TableViewCell\u003e\n            \u003cTableViewCell\u003eTable\u003c/TableViewCell\u003e\n        \u003c/TableView\u003e\n    );\n  }\n}\n```\n\n### TableViewCell\n```\n@prop [divider] {Boolean} Renders a divider cell\n@prop [navigateRight] {Boolean} Right-wards chevron \n@prop [navigateLeft] {Boolean} Left-wards chevron\n@prop [href] {String} Assigns the given href to the child anchor\n@prop [className] {String} Merges with the Ratchet predefined CSS classes\n```\nExample:\n```javascript\nvar TableViewCell = require('react-ratchet').TableViewCell;\nclass MyTableViewCell extends React.Component {\n  render() {\n    return \u003cTableViewCell\u003eHello World!\u003c/TableViewCell\u003e\n  }\n}\n```\n\n### Button\n```\n@prop [block] {Boolean} A block button\n@prop [outlined] {Boolean} An outlined button\n@prop [rStyle] {String} One of the btn-* CSS classes\n@prop [className] {String} Merges with the Ratchet predefined CSS classes\n```\nExample:\n```javascript\nvar Button = require('react-ratchet').Button;\nclass MyButton extends React.Component {\n  render() {\n    return \u003cButton block rStyle='positive'\u003eHello World!\u003c/Button\u003e\n  }\n}\n```\n\n### Badge\n```\n@prop [inverted] {Boolean} An inverted badge\n@prop [rStyle] {String} One of the badge-* CSS classes\n@prop [className] {String} Merges with the Ratchet predefined CSS classes\n```\nExample:\n```javascript\nvar Badge = require('react-ratchet').Badge;\nclass MyBadge extends React.Component {\n  render() {\n    return \u003cBadge rStyle='primary' inverted\u003e42\u003c/Badge\u003e\n  }\n}\n```\n\n### Icon\n```\n@prop [...] {Boolean} Any defined boolean prop will be taken for the icon name\n@prop [className] {String} Merges with the Ratchet predefined CSS classes\n```\nExample:\n```javascript\nvar Icon = require('react-ratchet').Icon;\nclass MyIcon extends React.Component {\n  render() {\n    return \u003cIcon star-filled /\u003e\n  }\n}\n```\n\n### Toggle\n```\n@prop [active] {Boolean} Set the toggle to active\n@prop [onToggle] {Function} Called when the toggle is toggled, with the new \nactive state as the only argument\n@prop [className] {String} Merges with the Ratchet predefined CSS classes\n```\nExample:\n```javascript\nvar Toggle = require('react-ratchet').Toggle;\nclass MyToggle extends React.Component {\n  constructor(props) {\n    super(props)\n    this.state = {active: false}\n  }\n\n  render() {\n    return (\n      \u003cToggle\n        active={this.state.active}\n        onToggle={(active) =\u003e this.setState({active})}\n      /\u003e\n    )\n  }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjsdf%2Freact-ratchet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjsdf%2Freact-ratchet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjsdf%2Freact-ratchet/lists"}