{"id":17984440,"url":"https://github.com/ztrap/navigation-toggle-icon","last_synced_at":"2025-04-04T02:15:19.875Z","repository":{"id":230903842,"uuid":"780415415","full_name":"zTrap/navigation-toggle-icon","owner":"zTrap","description":"Compose Multiplatform icon which have 3 states (burger, arrow and cross) and animated transitions between them","archived":false,"fork":false,"pushed_at":"2024-04-01T13:56:13.000Z","size":3232,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-09T13:42:30.550Z","etag":null,"topics":["android","compose","compose-multiplatform","desktop","icon","ios","jetpack-compose","multiplatform-kotlin-library","navigation","toggle","wasm"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zTrap.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2024-04-01T12:39:43.000Z","updated_at":"2024-12-14T19:50:11.000Z","dependencies_parsed_at":null,"dependency_job_id":"de1b7e1c-bed0-4b10-84ae-5083a2f75507","html_url":"https://github.com/zTrap/navigation-toggle-icon","commit_stats":null,"previous_names":["ztrap/navigation-toggle-icon"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zTrap%2Fnavigation-toggle-icon","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zTrap%2Fnavigation-toggle-icon/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zTrap%2Fnavigation-toggle-icon/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zTrap%2Fnavigation-toggle-icon/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zTrap","download_url":"https://codeload.github.com/zTrap/navigation-toggle-icon/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247107827,"owners_count":20884797,"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":["android","compose","compose-multiplatform","desktop","icon","ios","jetpack-compose","multiplatform-kotlin-library","navigation","toggle","wasm"],"created_at":"2024-10-29T18:21:24.313Z","updated_at":"2025-04-04T02:15:19.854Z","avatar_url":"https://github.com/zTrap.png","language":"Kotlin","readme":"# Navigation toggle icon\n\n[Compose Multiplatform](https://www.jetbrains.com/lp/compose-multiplatform/) icon which have 3 states (burger, arrow and cross) and animated transitions between them\n\n[![GitHub license](https://img.shields.io/badge/license-Apache%20License%202.0-blue.svg?style=flat)](https://www.apache.org/licenses/LICENSE-2.0)\n[![Download](https://img.shields.io/maven-central/v/ru.ztrap/navigation-toggle-icon?style=flat)](https://central.sonatype.com/artifact/ru.ztrap/navigation-toggle-icon)\n\nSupported platforms:\n![badge](https://img.shields.io/badge/-android-6EDB8D.svg?style=flat)\n![badge](https://img.shields.io/badge/-ios-CDCDCD.svg?style=flat)\n![badge](https://img.shields.io/badge/-wasm-624FE8.svg?style=flat)\n![badge](https://img.shields.io/badge/-jvm-DB413D.svg?style=flat)\n\n## Install\n\n```gradle\nimplementation 'ru.ztrap:navigation-toggle-icon:${latestVersion}'\n```\n\n## Sample\n\n![sample](.github/animations-sample.gif)\n\n## Usage\n\n1. Simple toggle icon\n\n    ```kotlin\n    var toggled by remember { mutableStateOf(false) }\n    \n    NavigationToggleIcon(\n        modifier = Modifier.size(24.dp).clickable { toggled = !toggled },\n        startIconType = Burger,\n        endIconType = Arrow,\n        toggled = toggled,\n        contentDescription = null,\n    )\n    ```\n\n2. Toggle icon with controlled progress\n\n    ```kotlin\n    val progress = // any source which produce progress in 0f..1f bounds\n    \n    NavigationToggleIcon(\n        modifier = Modifier.size(24.dp),\n        startIconType = Burger,\n        endIconType = Arrow,\n        progress = progress,\n        contentDescription = null,\n    )\n    ```\n\n## Developed By\n\n- Peter Gulko\n- ztrap.developer@gmail.com\n\n## License\n\n```\nCopyright 2024 Peter Gulko (zTrap)\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n   https://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fztrap%2Fnavigation-toggle-icon","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fztrap%2Fnavigation-toggle-icon","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fztrap%2Fnavigation-toggle-icon/lists"}