☕ Buy Me a Coffee Button
Submitted by Zachary Blackwood
Summary
Adds a floating button which links to your Buy Me a Coffee page
Functions
button
Display a button which links to your Buy Me a Coffee page.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
username
|
str
|
Buy Me a Coffee username |
required |
floating
|
bool
|
Whether the button should be floating. Defaults to True. |
True
|
text
|
str
|
Text to show on the button. Defaults to "Buy me a coffee". |
'Buy me a coffee'
|
emoji
|
str
|
Emoji to show on the button. Defaults to "". |
''
|
bg_color
|
str
|
Background of the button. Defaults to "#FFDD00". |
'#FFDD00'
|
font
|
Font
|
Font of the button. Defaults to "Cookie". |
'Cookie'
|
font_color
|
str
|
Font color. Defaults to "#000000". |
'#000000'
|
coffee_color
|
str
|
Coffee icon color. Defaults to "#000000". |
'#000000'
|
width
|
int
|
Width of the button. Defaults to 220. |
220
|
Source code in src/streamlit_extras/buy_me_a_coffee/__init__.py
Import:
- You should add this to the top of your .py file