{"id":13755413,"url":"https://github.com/trendmicro-frontend/react-anchor","last_synced_at":"2025-09-04T14:32:28.613Z","repository":{"id":57167633,"uuid":"76250542","full_name":"trendmicro-frontend/react-anchor","owner":"trendmicro-frontend","description":"React Anchor component","archived":false,"fork":false,"pushed_at":"2023-09-22T14:03:01.000Z","size":1822,"stargazers_count":4,"open_issues_count":0,"forks_count":3,"subscribers_count":18,"default_branch":"master","last_synced_at":"2024-12-29T05:36:41.396Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://trendmicro-frontend.github.io/react-anchor","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/trendmicro-frontend.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,"governance":null,"roadmap":null,"authors":null}},"created_at":"2016-12-12T11:30:33.000Z","updated_at":"2023-09-22T14:03:06.000Z","dependencies_parsed_at":"2024-01-17T15:04:29.756Z","dependency_job_id":"ee850fdf-24a0-4d3c-9aed-9475ff4ad1da","html_url":"https://github.com/trendmicro-frontend/react-anchor","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trendmicro-frontend%2Freact-anchor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trendmicro-frontend%2Freact-anchor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trendmicro-frontend%2Freact-anchor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trendmicro-frontend%2Freact-anchor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/trendmicro-frontend","download_url":"https://codeload.github.com/trendmicro-frontend/react-anchor/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":231969970,"owners_count":18453891,"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-08-03T10:00:53.882Z","updated_at":"2024-12-31T09:32:40.154Z","avatar_url":"https://github.com/trendmicro-frontend.png","language":"JavaScript","funding_links":[],"categories":["Trend Micro"],"sub_categories":["React Components"],"readme":"# react-anchor [![build status](https://travis-ci.org/trendmicro-frontend/react-anchor.svg?branch=master)](https://travis-ci.org/trendmicro-frontend/react-anchor) [![Coverage Status](https://coveralls.io/repos/github/trendmicro-frontend/react-anchor/badge.svg?branch=master)](https://coveralls.io/github/trendmicro-frontend/react-anchor?branch=master)\n\n[![NPM](https://nodei.co/npm/@trendmicro/react-anchor.png?downloads=true\u0026stars=true)](https://nodei.co/npm/@trendmicro/react-anchor/)\n\nReact Anchor component. It handles \u003cb\u003estopPropagation()\u003c/b\u003e and \u003cb\u003epreventDefault()\u003c/b\u003e when disabling an anchor tag.\n\nDemo: https://trendmicro-frontend.github.io/react-anchor\n\n## Installation\n\n1. Install the latest version of [react](https://github.com/facebook/react) and [react-anchor](https://github.com/trendmicro-frontend/react-anchor):\n\n  ```\n  npm install --save react @trendmicro/react-anchor\n  ```\n\n2. Import [react-anchor](https://github.com/trendmicro-frontend/react-anchor) with \u003cb\u003e@trendmicro\u003c/b\u003e scope:\n  ```js\n  import Anchor from '@trendmicro/react-anchor';\n  ```\n\n## Usage\n\n```js\n\u003cAnchor\n    className=\"btn btn-default\"\n    href=\"https://github.com\"\n\u003e\n    \u003ci className=\"fa fa-github fa-fw\" /\u003e\n    GitHub\n\u003c/Anchor\u003e\n```\n\n\n## API\n\n### Properties\n\n\u003ctable\u003e\n  \u003cthead\u003e\n    \u003ctr\u003e\n      \u003cth align=\"left\"\u003eName\u003c/th\u003e\n      \u003cth align=\"left\"\u003eType\u003c/th\u003e\n      \u003cth align=\"left\"\u003eDefault\u003c/th\u003e\n      \u003cth align=\"left\"\u003eDescription\u003c/th\u003e\n    \u003c/tr\u003e\n  \u003c/thead\u003e\n  \u003ctbody\u003e\n    \u003ctr\u003e\n      \u003ctd\u003ehref\u003c/td\u003e\n      \u003ctd\u003eString\u003c/td\u003e\n      \u003ctd\u003e\u003c/td\u003e\n      \u003ctd\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003ctd\u003eonClick\u003c/td\u003e\n      \u003ctd\u003eFunction(event)\u003c/td\u003e\n      \u003ctd\u003e\u003c/td\u003e\n      \u003ctd\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003ctd\u003edisabled\u003c/td\u003e\n      \u003ctd\u003eBoolean\u003c/td\u003e\n      \u003ctd\u003e\u003c/td\u003e\n      \u003ctd\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003ctd\u003erole\u003c/td\u003e\n      \u003ctd\u003eString\u003c/td\u003e\n      \u003ctd\u003e\u003c/td\u003e\n      \u003ctd\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003ctd\u003etabIndex\u003c/td\u003e\n      \u003ctd\u003eNumber|String\u003c/td\u003e\n      \u003ctd\u003e\u003c/td\u003e\n      \u003ctd\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003ctd\u003ecomponentClass\u003c/td\u003e\n      \u003ctd\u003eNode|String\u003c/td\u003e\n      \u003ctd\u003e'a'\u003c/td\u003e\n      \u003ctd\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n  \u003c/tbody\u003e\n\u003c/table\u003e\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrendmicro-frontend%2Freact-anchor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftrendmicro-frontend%2Freact-anchor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrendmicro-frontend%2Freact-anchor/lists"}