Skip to content
This repository has been archived by the owner on Feb 10, 2024. It is now read-only.

Commit

Permalink
New material component: buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
LineIndent committed Aug 31, 2023
1 parent cd897ad commit 669ac79
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions app/material/button.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
from app.styles._button import button_css
import reflex as rx


class Button:
def __init__(
self,
__title: str,
):
self.__title = __title

self.button = rx.button(
rx.text(self.__title, font_size="14px", color="white"),
style=button_css,
)

def build(self):
return self.button

0 comments on commit 669ac79

Please sign in to comment.