{"id":32164968,"url":"https://github.com/abitdodgy/ex_component","last_synced_at":"2025-10-21T14:56:51.528Z","repository":{"id":57500073,"uuid":"253916208","full_name":"abitdodgy/ex_component","owner":"abitdodgy","description":"A DSL for generating HTML components in Elixir","archived":false,"fork":false,"pushed_at":"2020-09-23T02:37:04.000Z","size":73,"stargazers_count":4,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-21T14:56:44.538Z","etag":null,"topics":["components","components-library","dsl","elixir"],"latest_commit_sha":null,"homepage":null,"language":"Elixir","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/abitdodgy.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}},"created_at":"2020-04-07T21:28:46.000Z","updated_at":"2022-11-15T23:17:43.000Z","dependencies_parsed_at":"2022-08-28T16:11:05.780Z","dependency_job_id":null,"html_url":"https://github.com/abitdodgy/ex_component","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/abitdodgy/ex_component","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abitdodgy%2Fex_component","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abitdodgy%2Fex_component/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abitdodgy%2Fex_component/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abitdodgy%2Fex_component/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/abitdodgy","download_url":"https://codeload.github.com/abitdodgy/ex_component/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abitdodgy%2Fex_component/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280281400,"owners_count":26303709,"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","status":"online","status_checked_at":"2025-10-21T02:00:06.614Z","response_time":58,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["components","components-library","dsl","elixir"],"created_at":"2025-10-21T14:56:50.499Z","updated_at":"2025-10-21T14:56:51.520Z","avatar_url":"https://github.com/abitdodgy.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ExComponent\n\nA DSL for easily building dynamic, reusable components for your frontend framework in Elixir.\n\n```elixir\ninclude ExComponent\n\ndefcontenttag :alert, tag: :div, class: \"alert\",\n  variants: [\n    primary: [class: \"alert-primary\"],\n    success: [class: \"alert-success\"]\n  ]\n\nalert :primary, \"Alert!\"\n#=\u003e \u003cdiv class=\"alert alert-primary\"\u003eAlert!\u003c/div\u003e\n\nalert :primary, \"Alert!\", class: \"extra\"\n#=\u003e \u003cdiv class=\"alert alert-primary extra\"\u003eAlert!\u003c/div\u003e\n\nalert :success, \"Alert!\"\n#=\u003e \u003cdiv class=\"alert alert-success\"\u003eAlert!\u003c/div\u003e\n```\n\nGenerated function clauses accept a block and a list of opts.\n\n```elixir\nalert :primary, class: \"extra\" do\n  \"Alert!\"\nend\n#=\u003e \u003cdiv class=\"alert alert-primary extra\"\u003eAlert!\u003c/div\u003e\n```\n\nThis lib is a work in progress and its API might change.\n\nPlease see internal docs for extensive usage examples.\n\n## Installation\n\nThe package can be installed by adding `ex_component` to your list of dependencies in `mix.exs`:\n\n```elixir\ndef deps do\n  [\n    {:ex_component, \"~\u003e 0.1.0\"}\n  ]\nend\n```\n\nDocumentation can be generated with [ExDoc](https://github.com/elixir-lang/ex_doc)\nand published on [HexDocs](https://hexdocs.pm). Once published, the docs can\nbe found at [https://hexdocs.pm/ex_component](https://hexdocs.pm/ex_component).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabitdodgy%2Fex_component","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fabitdodgy%2Fex_component","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabitdodgy%2Fex_component/lists"}