{"id":18685804,"url":"https://github.com/grapesjs/components-tooltip","last_synced_at":"2026-03-15T18:08:21.464Z","repository":{"id":57253143,"uuid":"157999974","full_name":"GrapesJS/components-tooltip","owner":"GrapesJS","description":"Simple, CSS only, tooltip component for GrapesJS","archived":false,"fork":false,"pushed_at":"2023-06-08T11:09:21.000Z","size":183,"stargazers_count":21,"open_issues_count":0,"forks_count":12,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-12T04:51:45.766Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/GrapesJS.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":"2018-11-17T15:54:17.000Z","updated_at":"2024-10-07T13:44:32.000Z","dependencies_parsed_at":"2024-01-23T21:43:06.779Z","dependency_job_id":null,"html_url":"https://github.com/GrapesJS/components-tooltip","commit_stats":null,"previous_names":["artf/grapesjs-tooltip"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GrapesJS%2Fcomponents-tooltip","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GrapesJS%2Fcomponents-tooltip/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GrapesJS%2Fcomponents-tooltip/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GrapesJS%2Fcomponents-tooltip/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GrapesJS","download_url":"https://codeload.github.com/GrapesJS/components-tooltip/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248519473,"owners_count":21117757,"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-07T10:24:19.993Z","updated_at":"2026-03-15T18:08:21.392Z","avatar_url":"https://github.com/GrapesJS.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GrapesJS Tooltip\n\n\nSimple, CSS only, tooltip component for GrapesJS\n\n[Demo](https://grapesjs.com/demo.html)\n\n## Summary\n\n* Plugin name: `grapesjs-tooltip`\n* Components\n  * `tooltip`\n* Blocks\n  * `tooltip`\n\n\n\n\n\n## Options\n\n| Option | Description | Default |\n|-|-|-\n| `id` | The ID used to create tooltip block and component | `tooltip` |\n| `labelTooltip` | Label of the tooltip. Used for the block and component name | `Tooltip` |\n| `blockTooltip` | Object to extend the default tooltip block, eg. { label: 'Tooltip', category: 'Extra', ... }. Pass a falsy value to avoid adding the block | `{}` |\n| `propsTooltip` | Object to extend the default tooltip properties, eg. `{ name: 'Tooltip', droppable: false, ... }` | `{}` |\n| `extendTraits` | A function which allows to extend default traits by receiving the original array and returning a new one | `traits =\u003e traits` |\n| `attrTooltip` | Tooltip attribute prefix | `data-tooltip` |\n| `classTooltip` | Tooltip class prefix | `tooltip-component` |\n| `style` | Custom CSS styles, this will replace the default one | `''` |\n| `styleAdditional` | Additional CSS styles | `''` |\n| `privateClasses` | Make all tooltip relative classes private | `true` |\n| `showTooltipOnStyle` | If true, force the tooltip to be shown when you're styling it | `true` |\n| `stylableTooltip` | Indicate if the tooltip can be styled. You can also pass an array of which properties can be styled. Eg. `['color', 'background-color']` | `check the source...` |\n\n\n\n\n\n## Download\n\n* CDN\n  * `https://unpkg.com/grapesjs-tooltip`\n* NPM\n  * `npm i grapesjs-tooltip`\n* GIT\n  * `git clone https://github.com/GrapesJS/components-tooltip.git`\n\n\n\n\n\n## Usage\n\nDirectly in the browser\n```html\n\u003clink href=\"https://unpkg.com/grapesjs/dist/css/grapes.min.css\" rel=\"stylesheet\"/\u003e\n\u003cscript src=\"https://unpkg.com/grapesjs\"\u003e\u003c/script\u003e\n\u003cscript src=\"path/to/grapesjs-tooltip.min.js\"\u003e\u003c/script\u003e\n\n\u003cdiv id=\"gjs\"\u003e\u003c/div\u003e\n\n\u003cscript type=\"text/javascript\"\u003e\n  var editor = grapesjs.init({\n      container : '#gjs',\n      // ...\n      plugins: ['grapesjs-tooltip'],\n      pluginsOpts: {\n        'grapesjs-tooltip': { /* options */ }\n      }\n  });\n\u003c/script\u003e\n```\n\nModern javascript\n```js\nimport grapesjs from 'grapesjs';\nimport pluginTooltip from 'grapesjs-tooltip';\n\nconst editor = grapesjs.init({\n  container : '#gjs',\n  // ...\n  plugins: [pluginTooltip],\n  pluginsOpts: {\n    [pluginTooltip]: { /* options */ }\n  }\n  // or\n  plugins: [\n    editor =\u003e pluginTooltip(editor, { /* options */ }),\n  ],\n});\n```\n\n\n\n\n\n## Development\n\nClone the repository\n\n```sh\n$ git clone https://github.com/GrapesJS/components-tooltip.git\n$ cd grapesjs-tooltip\n```\n\nInstall dependencies\n\n```sh\n$ npm i\n```\n\nStart the dev server\n\n```sh\n$ npm start\n```\n\n\n\n\n\n## License\n\nBSD 3-Clause\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgrapesjs%2Fcomponents-tooltip","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgrapesjs%2Fcomponents-tooltip","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgrapesjs%2Fcomponents-tooltip/lists"}