{"id":20285827,"url":"https://github.com/tpkn/vue-spolier","last_synced_at":"2026-01-29T08:43:56.405Z","repository":{"id":74204194,"uuid":"214900569","full_name":"tpkn/vue-spolier","owner":"tpkn","description":"A tiny spoiler component","archived":false,"fork":false,"pushed_at":"2019-12-03T18:29:06.000Z","size":36,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-18T15:53:11.390Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Vue","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/tpkn.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-10-13T22:02:28.000Z","updated_at":"2019-12-03T18:29:10.000Z","dependencies_parsed_at":"2023-02-25T19:00:49.609Z","dependency_job_id":null,"html_url":"https://github.com/tpkn/vue-spolier","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tpkn/vue-spolier","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tpkn%2Fvue-spolier","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tpkn%2Fvue-spolier/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tpkn%2Fvue-spolier/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tpkn%2Fvue-spolier/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tpkn","download_url":"https://codeload.github.com/tpkn/vue-spolier/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tpkn%2Fvue-spolier/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28872366,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-29T07:35:32.468Z","status":"ssl_error","status_checked_at":"2026-01-29T07:33:31.463Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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-14T14:29:07.487Z","updated_at":"2026-01-29T08:43:56.378Z","avatar_url":"https://github.com/tpkn.png","language":"Vue","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Vue Spoiler\r\n\r\nA tiny spoiler component\r\n\r\n\r\n\r\n\r\n## Props\r\n\r\n### expand\r\n**Type**: _Boolean_  \r\n**Default**: `false`   \r\nAuto-expand the spoiler \r\n\r\n\r\n\r\n### width\r\n**Type**: _String_  \r\n**Default**: `100%`   \r\nSpoiler element width\r\n\r\n\r\n\r\n### height\r\n**Type**: _String_  \r\n**Default**: `none`   \r\nSpoiler `.content` block maximum height\r\n\r\n\r\n\r\n### title\r\n**Type**: _String_  \r\nSpoiler title text. Overrides `\u003ctemplate v-slot:title\u003e`\r\n\r\n\r\n\r\n### titleExpanded\r\n**Type**: _String_  \r\nTitle after the spoiler expands. Overrides `\u003ctemplate v-slot:titleExpanded\u003e`\r\n\r\n\r\n\r\n### arrow\r\n**Type**: _Boolean_  \r\n**Default**: `true`   \r\nArrow icon indicating the spoiler state\r\n\r\n\r\n\r\n\r\n### uncollapsable\r\n**Type**: _Boolean_  \r\n**Default**: `false`   \r\nIf `true`, then title would be removed right after the spoiler expands\r\n\r\n![uncollapsable](https://raw.githubusercontent.com/tpkn/vue-spolier/master/features/uncollapsable.png)\r\n\r\n\r\n\r\n\r\n## Events\r\n\r\n### expanded\r\nCalled as soon as the spoiler has expanded \r\n\r\n```html\r\n\u003cSpoiler v-on:expanded=\"onExpanded\"\u003e\u003c/Spoiler\u003e\r\n```\r\n\r\n\r\n\r\n\r\n## Usage\r\n\r\n```javascript\r\nimport Spoiler from './components/Spoiler.vue'\r\nVue.component('Spoiler', Spoiler);\r\n```\r\n\r\n\r\n### Simple\r\n\r\n```html\r\n\u003cSpoiler title=\"My spoiler\"\u003e\r\n   \u003cul\u003e\r\n      \u003cli\u003e001\u003c/li\u003e\r\n      \u003cli\u003e002\u003c/li\u003e\r\n      \u003cli\u003e003\u003c/li\u003e\r\n   \u003c/ul\u003e\r\n\u003c/Spoiler\u003e\r\n````\r\n\r\n\r\n### Auto-expand with changing title\r\n\r\n```html\r\n\u003cSpoiler title=\"Open spoiler\" titleExpanded=\"Close it!\" expand=\"true\"\u003e\r\n   \u003cul\u003e\r\n      \u003cli\u003e001\u003c/li\u003e\r\n      \u003cli\u003e002\u003c/li\u003e\r\n      \u003cli\u003e003\u003c/li\u003e\r\n   \u003c/ul\u003e\r\n\u003c/Spoiler\u003e\r\n````\r\n\r\n\r\n### Custom title and limited width\r\n\r\n```html\r\n\u003cSpoiler width=\"500px\"\u003e\r\n   \u003ctemplate v-slot:title\u003e\r\n      \u003ch1\u003eSOME REALLY BIG TITLE\u003c/h1\u003e\r\n   \u003c/template\u003e\r\n   \u003ctemplate v-slot:titleExpanded\u003e\r\n      \u003ch1\u003eTITLE AFTER EXPANDING\u003c/h1\u003e\r\n   \u003c/template\u003e\r\n   \u003cul\u003e\r\n      \u003cli\u003e001\u003c/li\u003e\r\n      \u003cli\u003e002\u003c/li\u003e\r\n      \u003cli\u003e003\u003c/li\u003e\r\n   \u003c/ul\u003e\r\n\u003c/Spoiler\u003e\r\n````\r\n\r\n\r\n\r\n## Style\r\n\r\n```css\r\n.vue-spoiler {\r\n   margin-bottom: 10px;\r\n\r\n   border-radius: 5px;\r\n   border: 1px solid #cccccc;\r\n   background-color: white;\r\n   font-family: 'Fira Sans';\r\n\r\n   .title {\r\n      padding: 10px 15px;\r\n\r\n      .arrow {\r\n         margin-left: auto;\r\n      }\r\n   }\r\n\r\n   .content {\r\n      padding: 15px;\r\n   }\r\n}\r\n\r\n.vue-spoiler.expanded .title {\r\n   border-bottom: 1px solid #dbdbdb;\r\n}\r\n```\r\n\r\n\r\n\r\n\r\n\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftpkn%2Fvue-spolier","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftpkn%2Fvue-spolier","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftpkn%2Fvue-spolier/lists"}