{"id":20390313,"url":"https://github.com/the-couch/strider","last_synced_at":"2025-04-12T11:21:21.209Z","repository":{"id":57269704,"uuid":"124177541","full_name":"the-couch/strider","owner":"the-couch","description":"Step through quizzes, applications, checkouts, and whatever you want...","archived":false,"fork":false,"pushed_at":"2018-03-07T15:44:11.000Z","size":74,"stargazers_count":17,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-05-05T18:21:09.469Z","etag":null,"topics":["flows","quiz","react","stepper"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/the-couch.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-03-07T04:09:17.000Z","updated_at":"2024-01-02T10:12:07.000Z","dependencies_parsed_at":"2022-09-02T12:30:58.515Z","dependency_job_id":null,"html_url":"https://github.com/the-couch/strider","commit_stats":null,"previous_names":["the-couch/hustler"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/the-couch%2Fstrider","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/the-couch%2Fstrider/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/the-couch%2Fstrider/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/the-couch%2Fstrider/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/the-couch","download_url":"https://codeload.github.com/the-couch/strider/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248558128,"owners_count":21124223,"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":["flows","quiz","react","stepper"],"created_at":"2024-11-15T03:24:10.385Z","updated_at":"2025-04-12T11:21:21.186Z","avatar_url":"https://github.com/the-couch.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# strider\n\nA stepper library, for use in any type of flow, onboarding, quiz. With some helpers for animating between steps but without getting too in the way.\n\n[![js-standard-style](https://cdn.rawgit.com/feross/standard/master/badge.svg)](http://standardjs.com)\n\n## Usage\n\n```javascript\nimport React from 'react'\nimport { Strider, Step } from 'react-strider'\nimport cx from 'classnames'\n\nimport Layout from './Layout'\n\nimport StepOne from './StepOne'\nimport StepTwo from './StepTwo'\nimport StepThree from './StepThree'\nimport StepFour from './StepFour'\n\nclass Quiz extends React.Component {\n  constructor () {\n    super()\n    this.state = {\n      products: []\n    }\n  }\n  render () {\n    return (\n      \u003cLayout\u003e\n        \u003cStrider activeIndex={0} transitionSpeed={400}\u003e\n          \u003cStep\u003e\n            {({ next, goTo, active, hiding, activeIndex }) =\u003e (\n              \u003cdiv className={cx('step__wrapper', {\n                'is-active': active,\n                'is-hiding': hiding\n              })}\u003e\n                \u003cStepOne next={next} /\u003e\n              \u003c/div\u003e\n            )}\n          \u003c/Step\u003e\n          \u003cStep\u003e\n            {({ next, prev, goTo, active, hiding, activeIndex }) =\u003e (\n              \u003cdiv className={cx('step__wrapper', {\n                'is-active': active,\n                'is-hiding': hiding\n              })}\u003e\n                \u003cStepTwo next={next} step={activeIndex} prev={prev} handleProduct={(i) =\u003e this.setState({product: i})} /\u003e\n              \u003c/div\u003e\n            )}\n          \u003c/Step\u003e\n          \u003cStep\u003e\n            {({ next, prev, goTo, active, hiding, activeIndex }) =\u003e (\n              \u003cdiv className={cx('step__wrapper', {\n                'is-active': active,\n                'is-hiding': hiding\n              })}\u003e\n                \u003cStepThree next={next} step={activeIndex} prev={prev} /\u003e\n              \u003c/div\u003e\n            )}\n          \u003c/Step\u003e\n          \u003cStep\u003e\n            {({ next, prev, goTo, active, hiding, activeIndex }) =\u003e (\n              \u003cdiv className={cx('step__wrapper', {\n                'is-active': active,\n                'is-hiding': hiding\n              })}\u003e\n                \u003cStepFour next={next} step={activeIndex} prev={prev} /\u003e\n              \u003c/div\u003e\n            )}\n          \u003c/Step\u003e\n        \u003c/Strider\u003e\n      \u003c/Layout\u003e\n    )\n  }\n}\n\n```\n\n## API\n\n`next` - goes to the next step if there is one\n\n`prev` - goes to the previous step if there is one\n\n`goTo` - allows you to jump to any step `0` being the root step\n\n`hiding` - a simple set timeout for applying animations between steps, you could also apply set timeouts on the next/prev call to add additional animations within your own components\n\n`active` - the current active step, can be used again for animating\n\n`activeIndex` - the current index, helpful if you want to have some ui for visualizing where you are in the flow, or numbered steps like step 3 of 7 for example.\n\n\n\nMIT License\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthe-couch%2Fstrider","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthe-couch%2Fstrider","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthe-couch%2Fstrider/lists"}