{"id":13558944,"url":"https://github.com/bestguy/sveltestrap","last_synced_at":"2025-05-14T18:02:05.330Z","repository":{"id":18878474,"uuid":"85488373","full_name":"bestguy/sveltestrap","owner":"bestguy","description":"Bootstrap 4 \u0026 5 components for Svelte","archived":true,"fork":false,"pushed_at":"2024-01-07T09:50:10.000Z","size":31396,"stargazers_count":1314,"open_issues_count":124,"forks_count":183,"subscribers_count":33,"default_branch":"master","last_synced_at":"2025-05-05T12:02:15.449Z","etag":null,"topics":["bootstrap","svelte"],"latest_commit_sha":null,"homepage":"https://sveltestrap.js.org","language":"Svelte","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/bestguy.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-03-19T15:46:26.000Z","updated_at":"2025-04-21T14:16:10.000Z","dependencies_parsed_at":"2023-12-23T04:20:04.681Z","dependency_job_id":"fda04698-3c27-420f-a514-83f64796d163","html_url":"https://github.com/bestguy/sveltestrap","commit_stats":{"total_commits":761,"total_committers":54,"mean_commits":"14.092592592592593","dds":0.6846254927726676,"last_synced_commit":"4b2a88e9f16291d08a24a3df79a10c6397134ddc"},"previous_names":[],"tags_count":155,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bestguy%2Fsveltestrap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bestguy%2Fsveltestrap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bestguy%2Fsveltestrap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bestguy%2Fsveltestrap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bestguy","download_url":"https://codeload.github.com/bestguy/sveltestrap/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253923560,"owners_count":21984931,"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","svelte"],"created_at":"2024-08-01T12:05:14.919Z","updated_at":"2025-05-14T18:02:05.287Z","avatar_url":"https://github.com/bestguy.png","language":"Svelte","funding_links":[],"categories":["bootstrap","Svelte","components and libraries","UI Libraries","Sites"],"sub_categories":["ui component sets","Mobile"],"readme":"![sveltestrap](./logo.svg)\n\n# Important Note: This project is now hosted at [https://github.com/sveltestrap/sveltestrap](https://github.com/sveltestrap/sveltestrap)\n\n## This repo is the legacy repo for Sveltestrap 5 for use with Svelte 3.  No new development will happen here.\n\nsveltestrap.js.org docs now point to @sveltestrap/sveltestrap v6, and the new install/import for sveltestrap v6+ is `npm install @sveltestrap/sveltestrap`\n(You can still use sveltestrap v5.x via `npm install sveltestrap`)\n\nWe were unable to migrate this repo to the sponsor's org, so please update your imports, stars, bookmarks, etc to https://github.com/sveltestrap/sveltestrap.  Our apologies for any confusion.\nThis repo will eventually be archived.\n\n\n---\n\n## Bootstrap 5 components for Svelte v3\n\nThe goal of this library is to provide all Bootstrap 5 components for a [Svelte](https://svelte.dev) app. Sveltestrap makes it easy to use Bootstrap since there is no need to use Bootstrap component classes, to include Bootstrap's JavaScript, nor depend on jQuery. Sveltestrap is free, open-source software published under the permissive [MIT license.](https://github.com/bestguy/sveltestrap/blob/master/LICENSE) This library was inspired by the [reactstrap](https://reactstrap.github.io) library for React.\n\nTo make using Bootstrap themes easier, this library does _not_ embed Bootstrap styles directly and you will need to include Bootstrap 5 CSS in your page.\n\n[Demo page](https://sveltestrap.js.org/)\n\n---\n\n## Install\n\n`npm install svelte sveltestrap`\n\n## Usage\n\n_You need to include a link to Bootstrap 5 stylesheet in your page - these components do not include or embed any Bootstrap styles automatically._\n\nEither in your HTML layout:\n\n```html\n\u003chead\u003e\n  \u003clink\n    rel=\"stylesheet\"\n    href=\"https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css\"\n  /\u003e\n\u003c/head\u003e\n```\n\nOr from your Svelte app, either:\n\n```html\n\u003csvelte:head\u003e\n  \u003clink rel=\"stylesheet\" href=\"https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css\"\u003e\n\u003c/svelte:head\u003e\n```\n\nor:\n\n```html\n\u003cstyle\u003e\n  @import 'https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css';\n\u003c/style\u003e\n```\n\nor alternately, use the [Styles](https://sveltestrap.js.org/?path=/story/components--styles) component:\n\n```html\n\u003cscript\u003e\n  import { Styles } from 'sveltestrap';\n\u003c/script\u003e\n\n\u003cStyles /\u003e\n```\n\nThen use sveltestrap components in your svelte component:\n\n```html\n\u003cscript\u003e\n  import { Button, Col, Row } from 'sveltestrap';\n\u003c/script\u003e\n\n\u003cRow\u003e\n  \u003cCol\u003e\n    \u003cButton color=\"primary\" outline\u003eHello World!\u003c/Button\u003e\n  \u003c/Col\u003e\n\u003c/Row\u003e\n```\n\n### Note on Icons\n\nIf you wish to use the [Icon component](https://sveltestrap.js.org/?path=/story/components--icon),\nyou also must include a link to Bootstrap Icon CSS, for example:\n\n```html\n\u003csvelte:head\u003e\n  \u003clink rel=\"stylesheet\" href=\"https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.5/font/bootstrap-icons.css\"\u003e\n\u003c/svelte:head\u003e\n```\n\nor:\n\n```html\n\u003clink\n  rel=\"stylesheet\"\n  href=\"https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.5/font/bootstrap-icons.css\"\n/\u003e\n```\n\nor the [Styles](https://sveltestrap.js.org/?path=/story/components--styles) component includes the Bootstrap Icon CSS by default:\n\n```html\n\u003cscript\u003e\n  import { Styles } from 'sveltestrap';\n\u003c/script\u003e\n\u003cStyles /\u003e\n```\n\n### Note on usage with Sapper\n\nIf you are using Sveltestrap with Sapper, it's recommended you import the component source directly.\nNote that this issue does not affect SvelteKit. For example:\n\n```html\n\u003cscript\u003e\n  import { Button, Col, Row } from 'sveltestrap/src';\n\u003c/script\u003e\n\n\u003cRow\u003e\n  \u003cCol\u003e\n    \u003cButton color=\"primary\" outline\u003eHello World!\u003c/Button\u003e\n  \u003c/Col\u003e\n\u003c/Row\u003e\n```\n\nif you prefer the 'sveltestrap' import, you can move the package to `devDependencies` block in your `package.json` so that sapper will parse the es bundle\n\n```json\n\"devDependencies\": {\n    \"sveltestrap\": \"*.*.*\",\n    ...\n  },\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbestguy%2Fsveltestrap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbestguy%2Fsveltestrap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbestguy%2Fsveltestrap/lists"}