{"id":24383448,"url":"https://github.com/firstandthird/faqs","last_synced_at":"2025-03-12T17:20:42.725Z","repository":{"id":52603623,"uuid":"323348406","full_name":"firstandthird/faqs","owner":"firstandthird","description":"Accessible FAQs module","archived":false,"fork":false,"pushed_at":"2021-04-23T17:45:29.000Z","size":16,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-03-04T09:40:24.208Z","etag":null,"topics":["accessibility","domodule","faqs"],"latest_commit_sha":null,"homepage":"","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/firstandthird.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}},"created_at":"2020-12-21T13:44:54.000Z","updated_at":"2021-04-24T11:40:35.000Z","dependencies_parsed_at":"2022-09-24T15:44:20.341Z","dependency_job_id":null,"html_url":"https://github.com/firstandthird/faqs","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/firstandthird%2Ffaqs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/firstandthird%2Ffaqs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/firstandthird%2Ffaqs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/firstandthird%2Ffaqs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/firstandthird","download_url":"https://codeload.github.com/firstandthird/faqs/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243259020,"owners_count":20262380,"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":["accessibility","domodule","faqs"],"created_at":"2025-01-19T10:14:30.083Z","updated_at":"2025-03-12T17:20:42.701Z","avatar_url":"https://github.com/firstandthird.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003eFAQs\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/firstandthird/domodule/actions\"\u003e\n    \u003cimg src=\"https://img.shields.io/github/workflow/status/firstandthird/faqs/Lint/main?label=Lint\u0026style=for-the-badge\" alt=\"Lint Status\"/\u003e\n  \u003c/a\u003e\n  \u003cimg src=\"https://img.shields.io/npm/v/@firstandthird/faqs.svg?label=npm\u0026style=for-the-badge\" alt=\"NPM\" /\u003e\n\u003c/p\u003e\n\nAccessible FAQs module.\n\n## Installation\n\n```sh\nnpm install @firstandthird/faqs\n```\n\n## Usage\n\nIn your project import the library:\n\n```javascript\nimport '@firstandthird/faqs'\n\n// or\n\nimport Faqs from '@firstandthird/faqs'\n```\n\n## Module Options\n\n| Option | Type | Default | Description |\n|--------|------|---------|-------------|\n| `animateHeight` | _{Boolean}_ | `false` | Enable expand/collapse height animation (requires CSS, [see example](styles.css)) |\n| `closeOthers` | _{Boolean}_ | `true` | Only allows one expanded element at a time |\n| `hash` | _{Boolean}_ | `true` | Expand elements whose ID matches the current URL hash |\n\n## Example markup\n\n```html\n\u003cdl data-module=\"Faqs\"\n    data-module-animate-height=\"false\"\n    data-module-close-others=\"true\"\n    data-module-hash=\"true\"\u003e\n  \u003cdt\u003e\n    \u003cbutton\n      type=\"button\"\n      aria-expanded=\"false\"\n      aria-controls=\"question-1\"\n      data-action=\"toggle\"\u003eQuestion 1?\u003c/button\u003e\n  \u003c/dt\u003e\n  \u003cdd id=\"question-1\" aria-hidden=\"true\"\u003e\n    Lorem ipsum dolor sit amet consectetur, adipisicing elit.\n  \u003c/dd\u003e\n\u003c/dl\u003e\n```\n\nFull [example here](./example/index.html).\n\n---\n\n\u003ca href=\"https://firstandthird.com\"\u003e\u003cimg src=\"https://firstandthird.com/_static/ui/images/safari-pinned-tab-62813db097.svg\" height=\"32\" width=\"32\" align=\"right\"\u003e\u003c/a\u003e\n\n_A [First + Third](https://firstandthird.com) Project_\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffirstandthird%2Ffaqs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffirstandthird%2Ffaqs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffirstandthird%2Ffaqs/lists"}