{"id":24990010,"url":"https://github.com/thewebartisan7/posthtml-bootstrap-ui","last_synced_at":"2025-04-12T01:20:41.909Z","repository":{"id":62915905,"uuid":"553886063","full_name":"thewebartisan7/posthtml-bootstrap-ui","owner":"thewebartisan7","description":"PostHTML UI using X Components plugin and Bootstrap","archived":false,"fork":false,"pushed_at":"2022-11-10T02:37:35.000Z","size":1617,"stargazers_count":3,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-25T21:02:06.215Z","etag":null,"topics":["bootstrap","posthtml","posthtml-component","ui"],"latest_commit_sha":null,"homepage":"https://thewebartisan7.github.io/posthtml-bootstrap-ui/index.html","language":"HTML","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/thewebartisan7.png","metadata":{"files":{"readme":"readme.md","changelog":"changelog.md","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":"2022-10-18T23:36:26.000Z","updated_at":"2022-11-07T17:39:34.000Z","dependencies_parsed_at":"2023-01-21T20:45:27.480Z","dependency_job_id":null,"html_url":"https://github.com/thewebartisan7/posthtml-bootstrap-ui","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thewebartisan7%2Fposthtml-bootstrap-ui","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thewebartisan7%2Fposthtml-bootstrap-ui/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thewebartisan7%2Fposthtml-bootstrap-ui/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thewebartisan7%2Fposthtml-bootstrap-ui/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thewebartisan7","download_url":"https://codeload.github.com/thewebartisan7/posthtml-bootstrap-ui/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248501855,"owners_count":21114684,"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":["bootstrap","posthtml","posthtml-component","ui"],"created_at":"2025-02-04T13:04:18.326Z","updated_at":"2025-04-12T01:20:41.885Z","avatar_url":"https://github.com/thewebartisan7.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![NPM][npm]][npm-url]\n[![Coverage][cover]][cover-badge]\n[![XO code style][style]][style-url]\n\n\u003cdiv align=\"center\"\u003e\n  \u003cimg width=\"300\" title=\"PostHTML\" src=\"http://posthtml.github.io/posthtml/logo.svg\"\u003e\n  \u003ch1\u003ePostHTML UI \u003c/h1\u003e\n  \u003cp\u003eA PostHTML UI using X Components plugin and Bootstrap. For now just for testing and demo purpose of X Components plugin, in future maybe something more.\u003c/p\u003e\n\u003c/div\u003e\n\n## Installation\n\n```bash\nnpm i -D posthtml-bootstrap-ui\n```\n\nIf you want to publish all Boostrap UI components in your project, so without using the `ui` namespace then run below command.\n\n```bash\nnpm explore posthtml-bootstrap-ui -- npm run publish\n```\n\nAll components will be copied inside `src/components` and `src/layouts` without the `ui` namespace.\n\nSee also the [starter template here](https://github.com/thewebartisan7/posthtml-bootstrap-ui-starter).\n\n## Introduction\n\nThe PostHTML Bootstrap UI is a set of components made with [PostHTML X Components plugin](https://github.com/thewebartisan7/posthtml-components).\n\nThe components are designed to render Bootstrap components out-of-the-box, meaning you just write x-components syntax by passing props and it will be processed to a fully working HTML markup for Boostrap.\n\nTo give you a practical introduction example, let's look at the way how a few Bootstrap component can be rendered.\n\n```html\n\u003cx-alert type=\"danger\"\u003e\n  Hi, there! I'm an alert type danger component.\n\u003c/x-alert\u003e\n```\n\nOutput:\n\n```html\n\u003cdiv class=\"alert alert-danger\" role=\"alert\"\u003e\n    Hi, there! I'm an alert type danger component.     \n\u003c/div\u003e\n```\n\n**NOTE**\n\nThe components documentation show always the code example without the `ui` namespace.\nIf you didn't publish the ui as explained in installation, then you have to use the `ui` namespace.\nFor example the alert component would be:\n\n```html\n\u003cx-ui::alert type=\"danger\"\u003e\n  Hi, there! I'm an alert type danger component.\n\u003c/x-ui::alert\u003e\n```\n\nSee here more docs: [PostHTML Bootstrap UI docs and demo](https://thewebartisan7.github.io/posthtml-bootstrap-ui/index.html).\n\n## Contributing\n\nSee [PostHTML Guidelines](https://github.com/posthtml/posthtml/tree/master/docs) and [contribution guide](CONTRIBUTING.md).\n\n[npm]: https://img.shields.io/npm/v/posthtml-bootstrap-ui.svg\n[npm-url]: https://www.npmjs.com/package/posthtml-bootstrap-ui\n\n[style]: https://img.shields.io/badge/code_style-XO-5ed9c7.svg\n[style-url]: https://github.com/sindresorhus/xo\n\n[cover]: https://coveralls.io/repos/thewebartisan7/posthtml-bootstrap-ui/badge.svg?branch=main\n[cover-badge]: https://coveralls.io/r/thewebartisan7/posthtml-bootstrap-ui?branch=main\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthewebartisan7%2Fposthtml-bootstrap-ui","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthewebartisan7%2Fposthtml-bootstrap-ui","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthewebartisan7%2Fposthtml-bootstrap-ui/lists"}