{"id":22954117,"url":"https://github.com/marksolutions/mark-collapse","last_synced_at":"2025-04-02T00:21:58.594Z","repository":{"id":45038715,"uuid":"512792132","full_name":"marksolutions/mark-collapse","owner":"marksolutions","description":"Toggle the visibility of content.","archived":false,"fork":false,"pushed_at":"2023-11-16T11:29:38.000Z","size":32,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-03-10T03:29:34.078Z","etag":null,"topics":["collapse","collapsible","lit","lit-element","lit-html","toggle"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/marksolutions.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":"2022-07-11T14:34:13.000Z","updated_at":"2024-01-08T18:46:20.000Z","dependencies_parsed_at":"2023-01-23T16:16:22.049Z","dependency_job_id":"c132ac4c-d233-4da4-9dd2-613a02bdaa3f","html_url":"https://github.com/marksolutions/mark-collapse","commit_stats":null,"previous_names":["marksolutions/mk-collapse"],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marksolutions%2Fmark-collapse","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marksolutions%2Fmark-collapse/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marksolutions%2Fmark-collapse/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marksolutions%2Fmark-collapse/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/marksolutions","download_url":"https://codeload.github.com/marksolutions/mark-collapse/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246731141,"owners_count":20824511,"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":["collapse","collapsible","lit","lit-element","lit-html","toggle"],"created_at":"2024-12-14T16:15:53.612Z","updated_at":"2025-04-02T00:21:58.573Z","avatar_url":"https://github.com/marksolutions.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# `\u003cmark-collapse\u003e` [![Published on npm](https://img.shields.io/npm/v/@markai/mark-collapse.svg)](https://www.npmjs.com/package/@markai/mark-collapse)\n\n- This is simple web component built using the [lit.dev](https://lit.dev/) library.\n- It provides a simple way to create collapsible content sections.\n- Users can toggle the visibility of the content by interacting with the component.\n\n### Installation\n\n```shell\nnpm i @markai/mark-collapse\n```\n\n```shell\nyarn add @markai/mark-collapse\n```\n\n### Usage\n\nExample of mark-collapse usage patten.\n\n1. Import the mark-collapse element:\n\n```js\nimport '@markai/mark-collapse';\n```\n\n2. Add the mark-collapse element to your HTML:\n\n```html\n\u003cmark-collapse open\u003e\n  \u003cp\u003eThis content can be collapsed and expanded.\u003c/p\u003e\n\u003c/mark-collapse\u003e\n```\n\n### Properties\n\n| name   | Type      | Description                                                                                                                                                 |\n| ------ | --------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `open` | `boolean` | Determines whether the content is currently `open` (visible) or closed (hidden). By default, it is set to `false`, meaning the content is initially closed. |\n\n### Methods\n\n| name     | Return | Description                                                                                                                       |\n| -------- | ------ | --------------------------------------------------------------------------------------------------------------------------------- |\n| `toggle` | `void` | allows you to programmatically toggle the visibility of the content. Call this method to change the state of the `open` property. |\n\n### Slots\n\n| name      | Description                                                                                                                         |\n| --------- | ----------------------------------------------------------------------------------------------------------------------------------- |\n| `default` | to insert content that you want to collapse. Place your content within the `\u003cslot\u003e\u003c/slot\u003e` tags inside the `mark-collapse` element. |\n\n### CSS Custom Properties\n\n| Name                                  | Default | Description                                            |\n| ------------------------------------- | ------- | ------------------------------------------------------ |\n| `--mark-collapse-transition-duration` | `0.5s`  | The duration of the collapse/expand animation.         |\n| `--mark-collapse-transition-timing`   | `0.5s`  | The timing function for the collapse/expand animation. |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarksolutions%2Fmark-collapse","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarksolutions%2Fmark-collapse","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarksolutions%2Fmark-collapse/lists"}