{"id":18910040,"url":"https://github.com/cheton/react-bootstrap-buttons","last_synced_at":"2025-04-15T06:31:04.835Z","repository":{"id":65411584,"uuid":"162706464","full_name":"cheton/react-bootstrap-buttons","owner":"cheton","description":"React Bootstrap buttons.","archived":false,"fork":false,"pushed_at":"2020-02-16T17:21:29.000Z","size":6644,"stargazers_count":5,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-30T00:00:15.582Z","etag":null,"topics":["bootstrap","buttons","react"],"latest_commit_sha":null,"homepage":"https://cheton.github.io/react-bootstrap-buttons/","language":"JavaScript","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/cheton.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":null,"patreon":null,"open_collective":"cheton","ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2018-12-21T11:29:27.000Z","updated_at":"2020-07-21T11:20:34.000Z","dependencies_parsed_at":"2023-01-23T10:55:00.528Z","dependency_job_id":null,"html_url":"https://github.com/cheton/react-bootstrap-buttons","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cheton%2Freact-bootstrap-buttons","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cheton%2Freact-bootstrap-buttons/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cheton%2Freact-bootstrap-buttons/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cheton%2Freact-bootstrap-buttons/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cheton","download_url":"https://codeload.github.com/cheton/react-bootstrap-buttons/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248281389,"owners_count":21077423,"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","buttons","react"],"created_at":"2024-11-08T09:39:08.152Z","updated_at":"2025-04-15T06:31:04.786Z","avatar_url":"https://github.com/cheton.png","language":"JavaScript","funding_links":["https://opencollective.com/cheton"],"categories":[],"sub_categories":[],"readme":"# react-bootstrap-buttons [![build status](https://travis-ci.org/cheton/react-bootstrap-buttons.svg?branch=master)](https://travis-ci.org/cheton/react-bootstrap-buttons) [![Coverage Status](https://coveralls.io/repos/github/cheton/react-bootstrap-buttons/badge.svg?branch=master)](https://coveralls.io/github/cheton/react-bootstrap-buttons?branch=master)\n\n[![NPM](https://nodei.co/npm/react-bootstrap-buttons.png?downloads=true\u0026stars=true)](https://nodei.co/npm/react-bootstrap-buttons/)\n\nReact Bootstrap buttons.\n\nDemo: https://cheton.github.io/react-bootstrap-buttons\n\n## Installation\n\n1. Install [react-bootstrap-buttons](https://github.com/cheton/react-bootstrap-buttons):\n\n  ```\n  npm install --save react-bootstrap-buttons\n  ```\n\n2. Import `react-bootstrap-buttons` and its styles in your application as follows:\n\n  ```js\n  import { Button, ButtonGroup, ButtonToolbar } from 'react-bootstrap-buttons';\n\n  // Be sure to include styles at some point, probably during your bootstraping\n  import 'react-bootstrap-buttons/dist/react-bootstrap-buttons.css';\n  ```\n\n### Recommended Setup\n\nCreate a `Buttons` component inside your common components directory:\n```\ncomponents/\n  Buttons/\n    index.js\n```\n\n**components/Buttons/index.js**\n```js\nimport 'react-bootstrap-buttons/dist/react-bootstrap-buttons.css';\n\nexport { Button, ButtonGroup, ButtonToolbar } from 'react-bootstrap-buttons';\n```\n\nThen, import `Button` component in your code:\n```js\nimport { Button } from 'app/components/Buttons';\n```\n\n## Examples\n\nExamples for each component can be seen in [the documentation](examples).\n\nHere are some online demos of each component:\n* [Button](https://cheton.github.io/react-bootstrap-buttons/#button)\n* [ButtonGroup](https://cheton.github.io/react-bootstrap-buttons/#buttongroup)\n* [ButtonToolbar](https://cheton.github.io/react-bootstrap-buttons/#buttontoolbar)\n\n## API\n\n### Properties\n\n#### Button\n\nName | Type | Default | Description \n:--- | :--- | :------ | :----------\ntag | Function or String | 'button' | Pass in a component to override default button element.\ntype | One of:\u003cbr/\u003e'button'\u003cbr/\u003e'reset'\u003cbr/\u003e'submit' | 'button' | Specifies the type of button.\nlg | Boolean | | Large button.\nmd | Boolean | | Medium button. Defaults to 'md' if nothing is specified.\nsm | Boolean | | Small button.\nxs | Boolean | | Extra small button.\nbtnStyle | One of:\u003cbr/\u003e'default'\u003cbr/\u003e'primary'\u003cbr/\u003e'secondary'\u003cbr/\u003e'danger'\u003cbr/\u003e'warning'\u003cbr/\u003e'info'\u003cbr/\u003e'success'\u003cbr/\u003e'light'\u003cbr/\u003e'dark'\u003cbr/\u003e'link'\u003cbr/\u003e | 'default' | Component visual or contextual style variants.\noutline | Boolean | false | Specifies whether to remove background image and color on a button.\nblock | Boolean | false | Specifies whether to span the full width of a parent.\nactive | Boolean | false | Specifies whether to add active effect to a button.\nhover | Boolean | false | Specifies whether to add hover effect to a button.\nfocus | Boolean | flase | Specifies whether to add focus effect to a button.\ndisabled | Boolean | flase | Specifies whether a button should be disabled or not.\n\n#### ButtonGroup\n\nName | Type | Default | Description \n:--- | :--- | :------ | :----------\nlg | Boolean | | Large button group.\nmd | Boolean | | Medium button group. Defaults to 'md' if nothing is specified.\nsm | Boolean | | Small button group.\nxs | Boolean | | Extra small button group.\nbtnStyle | One of:\u003cbr/\u003e'default'\u003cbr/\u003e'primary'\u003cbr/\u003e'secondary'\u003cbr/\u003e'danger'\u003cbr/\u003e'warning'\u003cbr/\u003e'info'\u003cbr/\u003e'success'\u003cbr/\u003e'light'\u003cbr/\u003e'dark'\u003cbr/\u003e'link'\u003cbr/\u003e | | Component visual or contextual style variants.\nvertical | Boolean | false | Specifies whether a button group should be aligned vertically or not.\n\n#### ButtonToolbar\n\nName | Type | Default | Description \n:--- | :--- | :------ | :----------\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcheton%2Freact-bootstrap-buttons","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcheton%2Freact-bootstrap-buttons","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcheton%2Freact-bootstrap-buttons/lists"}