Metadata-Version: 2.1
Name: reactpy-github-buttons
Version: 0.0.12
Summary: ReactPy wrapper for react-github-btn
Home-page: https://github.com/stevej2608/reactpy-github-buttons
License: MIT
Author: Steve Jones
Author-email: jonesst2608@gmail.com
Requires-Python: >=3.9,<4.0.0
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Requires-Dist: reactpy[starlette,testing] (>=1.0.2,<2.0.0)
Project-URL: Repository, https://github.com/stevej2608/reactpy-github-buttons
Description-Content-Type: text/markdown

## reactpy-github-buttons

![](https://raw.githubusercontent.com/stevej2608/reactpy-github-buttons/master/docs/showcase.png)


 Minimal [ReactPy] wrapper for [github-buttons].

## Usage

    pip install reactpy-github-buttons


## Examples

Several examples of usage are in the *./examples* folder.

### Minimal

*./examples/single.py*
```
from reactpy import component, html, run
from reactpy_github_buttons import StarButton

@component
def AppMain():
    return StarButton(user='reactive-python', repo='reactpy')

if __name__ == "__main__":
    run(AppMain)
```

### With Color Scheme

*./examples/color_scheme.py*
```
from reactpy import component, html, run
from reactpy_github_buttons import StarButton, make_color_scheme, ColorScheme

@component
def AppMain():
    return StarButton(user='reactive-python', repo='reactpy',
        show_count=True,
        color_scheme=make_color_scheme(
            no_preference=ColorScheme.LIGHT_HIGH_CONTRAST,
            light=ColorScheme.LIGHT,
            dark=ColorScheme.DARK_HIGH_CONTRAST,
        )
    )

if __name__ == "__main__":
    run(AppMain)
```

### Buttons Playground

The [Buttons Playground](https://buttons.github.io/) application has been implemented 
as a RectPy demonstrator.

    python -m examples.button_playground

![](https://raw.githubusercontent.com/stevej2608/reactpy-github-buttons/master/docs/playground.png)


[github-buttons]: https://github.com/buttons/github-buttons
[ReactPy]: https://github.com/reactive-python/reactpy
