{"id":14972468,"url":"https://github.com/kovpack/bh","last_synced_at":"2025-06-22T11:32:56.917Z","repository":{"id":57479609,"uuid":"62510558","full_name":"kovpack/bh","owner":"kovpack","description":"Twitter Bootstrap 4 \u0026 Bootstrap 3 helpers for Phoenix.","archived":false,"fork":false,"pushed_at":"2019-11-03T00:01:19.000Z","size":251,"stargazers_count":20,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-06-04T16:34:48.214Z","etag":null,"topics":["bootstrap3","bootstrap4","elixir","helper","phoenix","phoenix-framework"],"latest_commit_sha":null,"homepage":"https://kovpack.github.io/bh/","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/kovpack.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":"2016-07-03T18:48:44.000Z","updated_at":"2023-09-01T10:57:32.000Z","dependencies_parsed_at":"2022-09-17T04:50:42.819Z","dependency_job_id":null,"html_url":"https://github.com/kovpack/bh","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/kovpack/bh","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kovpack%2Fbh","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kovpack%2Fbh/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kovpack%2Fbh/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kovpack%2Fbh/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kovpack","download_url":"https://codeload.github.com/kovpack/bh/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kovpack%2Fbh/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261287609,"owners_count":23135939,"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":["bootstrap3","bootstrap4","elixir","helper","phoenix","phoenix-framework"],"created_at":"2024-09-24T13:46:57.970Z","updated_at":"2025-06-22T11:32:51.896Z","avatar_url":"https://github.com/kovpack.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Bh\n\nTwitter Bootstrap 4 \u0026 Twitter Bootstrap 3 helpers for Phoenix.\n\nThis package is designed to minimize repetitive code and the amount of HTML\nmarkup in your project's source code.\n\nPackage is greatly inspired by [bh](https://github.com/Fullscreen/bh) gem\nfor Rails (so this package even took the same name, however, API is different\nso do not expect to find exactly the same stuff).\n\nReal live examples can be found on the site of the\n[Project](https://kovpack.github.io/bh/).\n\nFull API documentation is available on\n[Hexdocs](https://hexdocs.pm/bh/api-reference.html).\n\n**NOTE**: Please, keep in mind, that Twitter Bootstrap source files are not\nincluded into the package and should be installed separately.\n\n## Installation\n\nPackage is [available in Hex](https://hex.pm/packages/bh) and can be installed\nas:\n\n- Add `:bh` of the needed version to the list of dependencies in `mix.exs`:\n\n```\ndef deps do\n  [{:bh, \"~\u003e 0.0.16\"}]\nend\n```\n\n- Use `use Bh` to import all **Bootstrap 4** helpers into needed view:\n\n```\ndefmodule YourApp.SomeView do\n  use YourApp.Web, :view\n  use Bh\nend\n```\n\nIf you want to use **Bootstrap 3** helpers, you have to pass an extra option\nlike this:\n\n```\ndefmodule YourApp.SomeView do\n  use YourApp.Web, :view\n  use Bh, bootstrap: 3\nend\n```\n\n- Now you can use helpers in your view like this:\n\n```\n\u003c%= bh_label \"Pill text\", context: :success %\u003e\n```\n\n**NOTE:** keep in mind, that **Bootstrap 3** and **Bootstrap 4** helpers can\nhave different APIs and may be not compatible, so check documentation or live\nexamples.\n\n## Licence\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkovpack%2Fbh","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkovpack%2Fbh","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkovpack%2Fbh/lists"}