{"id":15862074,"url":"https://github.com/afeiship/react-tip","last_synced_at":"2026-04-30T10:35:39.833Z","repository":{"id":57123004,"uuid":"236488240","full_name":"afeiship/react-tip","owner":"afeiship","description":"Tooltip for react based on ballon.css.","archived":false,"fork":false,"pushed_at":"2021-02-26T10:40:48.000Z","size":119,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-17T22:55:50.315Z","etag":null,"topics":["balloon","react","tip","tooltip"],"latest_commit_sha":null,"homepage":null,"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/afeiship.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-01-27T12:42:40.000Z","updated_at":"2021-03-12T04:02:55.000Z","dependencies_parsed_at":"2022-08-24T14:59:33.005Z","dependency_job_id":null,"html_url":"https://github.com/afeiship/react-tip","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Freact-tip","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Freact-tip/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Freact-tip/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Freact-tip/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/afeiship","download_url":"https://codeload.github.com/afeiship/react-tip/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246709935,"owners_count":20821298,"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":["balloon","react","tip","tooltip"],"created_at":"2024-10-05T22:24:19.410Z","updated_at":"2026-04-30T10:35:34.798Z","avatar_url":"https://github.com/afeiship.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-tip\n\u003e Tooltip for react based on ballon.css.\n\n[![version][version-image]][version-url]\n[![license][license-image]][license-url]\n[![size][size-image]][size-url]\n[![download][download-image]][download-url]\n\n## installation\n```shell\nnpm install -S @jswork/react-tip\n```\n\n## properties\n| Name      | Type   | Required | Default | Description                           |\n| --------- | ------ | -------- | ------- | ------------------------------------- |\n| className | string | false    | -       | The extended className for component. |\n| title     | string | false    | -       | The tooltip title.                    |\n| placement | enum   | false    | 'up'    | The placement.                        |\n\n\n## usage\n1. import css\n  ```scss\n  // or use sass\n  @import \"balloon-css\";\n  @import \"~@jswork/react-tip/dist/style.scss\";\n\n  // customize your styles:\n  $react-tip-options: ()\n  ```\n2. import js\n  ```js\n  import ReactDemokit from '@jswork/react-demokit';\n  import React from 'react';\n  import ReactDOM from 'react-dom';\n  import ReactTip from '@jswork/react-tip';\n  import './assets/style.scss';\n\n  class App extends React.Component {\n    state = {\n      placements: [\n        'up',\n        'down',\n        'left',\n        'right',\n        'up-left',\n        'up-right',\n        'down-left',\n        'down-right'\n      ]\n    };\n\n    render() {\n      const { placements } = this.state;\n      return (\n        \u003cReactDemokit\n          className=\"p-3 app-container\"\n          url=\"https://github.com/afeiship/react-tip\"\u003e\n          {placements.map((item) =\u003e {\n            return (\n              \u003cReactTip key={item} title={`abc.com - ${item}`} placement={item}\u003e\n                \u003cbutton className=\"button is-fullwidth is-info\"\u003eAbc.com - {item}\u003c/button\u003e\n              \u003c/ReactTip\u003e\n            );\n          })}\n        \u003c/ReactDemokit\u003e\n      );\n    }\n  }\n\n  ReactDOM.render(\u003cApp /\u003e, document.getElementById('app'));\n\n  ```\n\n## documentation\n- https://afeiship.github.io/react-tip/\n\n\n## license\nCode released under [the MIT license](https://github.com/afeiship/react-tip/blob/master/LICENSE.txt).\n\n[version-image]: https://img.shields.io/npm/v/@jswork/react-tip\n[version-url]: https://npmjs.org/package/@jswork/react-tip\n\n[license-image]: https://img.shields.io/npm/l/@jswork/react-tip\n[license-url]: https://github.com/afeiship/react-tip/blob/master/LICENSE.txt\n\n[size-image]: https://img.shields.io/bundlephobia/minzip/@jswork/react-tip\n[size-url]: https://github.com/afeiship/react-tip/blob/master/dist/react-tip.min.js\n\n[download-image]: https://img.shields.io/npm/dm/@jswork/react-tip\n[download-url]: https://www.npmjs.com/package/@jswork/react-tip\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fafeiship%2Freact-tip","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fafeiship%2Freact-tip","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fafeiship%2Freact-tip/lists"}