{"id":18751142,"url":"https://github.com/substrate-system/arrow-next","last_synced_at":"2025-04-13T00:08:10.409Z","repository":{"id":253189404,"uuid":"842615424","full_name":"substrate-system/arrow-next","owner":"substrate-system","description":"Button + icon for next","archived":false,"fork":false,"pushed_at":"2025-04-07T01:10:50.000Z","size":64,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-13T00:07:59.250Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://substrate-system.github.io/arrow-next/","language":"TypeScript","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/substrate-system.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-08-14T17:56:21.000Z","updated_at":"2025-03-26T05:01:34.000Z","dependencies_parsed_at":"2025-03-26T06:19:28.736Z","dependency_job_id":"2af21304-59be-447a-a103-3b61ed2f39b6","html_url":"https://github.com/substrate-system/arrow-next","commit_stats":null,"previous_names":["substrate-system/arrow-next"],"tags_count":2,"template":false,"template_full_name":"substrate-system/template-web-component","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/substrate-system%2Farrow-next","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/substrate-system%2Farrow-next/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/substrate-system%2Farrow-next/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/substrate-system%2Farrow-next/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/substrate-system","download_url":"https://codeload.github.com/substrate-system/arrow-next/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248647299,"owners_count":21139086,"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-11-07T17:14:37.098Z","updated_at":"2025-04-13T00:08:10.392Z","avatar_url":"https://github.com/substrate-system.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# arrow next\n![tests](https://github.com/substrate-system/arrow-next/actions/workflows/nodejs.yml/badge.svg)\n[![types](https://img.shields.io/npm/types/@substrate-system/arrow-next?style=flat-square)](README.md)\n[![module](https://img.shields.io/badge/module-ESM%2FCJS-blue?style=flat-square)](README.md)\n[![install size](https://packagephobia.com/badge?p=@substrate-system/arrow-next)](https://packagephobia.com/result?p=@substrate-system/arrow-next)\n[![dependencies](https://img.shields.io/badge/dependencies-zero-brightgreen.svg?style=flat-square)](package.json)\n[![semantic versioning](https://img.shields.io/badge/semver-2.0.0-blue?logo=semver\u0026style=flat-square)](https://semver.org/)\n[![license](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](LICENSE)\n\nA next button icon.\n\n[See a live demo](https://substrate-system.github.io/arrow-next/)\n\n\u003c!-- toc --\u003e\n\n- [install](#install)\n- [API](#api)\n  * [ESM](#esm)\n  * [Common JS](#common-js)\n- [CSS](#css)\n  * [Import CSS](#import-css)\n- [use](#use)\n  * [JS](#js)\n  * [HTML](#html)\n  * [pre-built](#pre-built)\n\n\u003c!-- tocstop --\u003e\n\n## install\n\n```sh\nnpm i -S @substrate-system/arrow-next\n```\n\n## API\n\n\u003e [!IMPORTANT]  \n\u003e This depends on a CSS class `visually-hidden`.\n\u003e See [Accessible Icon Buttons](https://www.sarasoueidan.com/blog/accessible-icon-buttons/).\n\u003e Install `@substrate-system/css-util` for help with this. \n\nThis exposes ESM and common JS via [package.json `exports` field](https://nodejs.org/api/packages.html#exports).\n\n### ESM\n```js\nimport '@substrate-system/arrow-next'\n```\n\n### Common JS\n```js\nrequire('@substrate-system/arrow-next')\n```\n\n## CSS\n\n### `@substrate-system/css-util/arrow`\n\n\u003e [!TIP]\n\u003e Use `@substrate-system/css-util/arrow` to deduplicate\n\u003e the CSS with the `@substrate-system/arrow-prev` component.\n\nThis will deduplicate CSS that is shared with [@substrate-system/arrow-next](https://github.com/substrate-system/arrow-next).\n\n```js\nimport '@substrate-system/css-util/arrow'\n```\n\n### `.visually-hidden` class\nThis depends on a CSS definition for `.visually-hidden`. Install `@substrate-system/css-util`:\n\n```sh\nnpm i -S @substrate-system/css-util\n```\n\n### Import CSS\n\n```js\nimport '@substrate-system/css-util/visually-hidden'\nimport '@substrate-system/arrow-next/css'\n```\n\nOr minified:\n```js\nimport '@substrate-system/css-util/min/visually-hidden'\nimport '@substrate-system/arrow-next/css/min'\n```\n\n## use\nThis calls the global function `customElements.define`. Just import, then use\nthe tag in your HTML.\n\n### JS\n```js\nimport '@substrate-system/arrow-next'\n```\n\n### HTML\n```html\n\u003cdiv\u003e\n    \u003carrow-next\u003e\u003c/arrow-next\u003e\n\u003c/div\u003e\n```\n\n### pre-built\nThis package exposes minified JS and CSS files too. Copy them to a location that is\naccessible to your web server, then link to them in HTML.\n\n#### copy\n```sh\ncp ./node_modules/@substrate-system/arrow-next/dist/index.min.js ./public/arrow-next.min.js\ncp ./node_modules/@substrate-system/arrow-next/dist/style.min.css ./public/arrow-next.css\n```\n\n#### HTML\n```html\n\u003chead\u003e\n    \u003clink rel=\"stylesheet\" href=\"./arrow-next.css\"\u003e\n\u003c/head\u003e\n\u003cbody\u003e\n    \u003c!-- ... --\u003e\n    \u003cscript type=\"module\" src=\"./arrow-next.min.js\"\u003e\u003c/script\u003e\n\u003c/body\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsubstrate-system%2Farrow-next","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsubstrate-system%2Farrow-next","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsubstrate-system%2Farrow-next/lists"}