Compare commits
3 Commits
main
...
alek/uploa
Author | SHA1 | Date | |
---|---|---|---|
![]() |
7fab05850d | ||
![]() |
bab0aaae5a | ||
![]() |
414278458f |
BIN
assets/favicon.ico
Normal file
BIN
assets/favicon.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 4.2 KiB |
@ -8,6 +8,8 @@ from typing import Callable, ClassVar, Dict, List, Optional
|
||||
|
||||
from reflex.components.component import Component, ComponentNamespace, MemoizationLeaf
|
||||
from reflex.components.el.elements.forms import Input
|
||||
from reflex.components.lucide import icon
|
||||
from reflex.components.radix.themes.components.button import button
|
||||
from reflex.components.radix.themes.layout.box import Box
|
||||
from reflex.constants import Dirs
|
||||
from reflex.event import (
|
||||
@ -324,9 +326,8 @@ class StyledUpload(Upload):
|
||||
The styled upload component.
|
||||
"""
|
||||
# Set default props.
|
||||
props.setdefault("border", "1px dashed var(--accent-12)")
|
||||
props.setdefault("padding", "5em")
|
||||
props.setdefault("textAlign", "center")
|
||||
if not children:
|
||||
children = [button("Upload Files", icon("upload", size=12), align_items="center")]
|
||||
|
||||
# Mark the Upload component as used in the app.
|
||||
Upload.is_used = True
|
||||
|
Loading…
Reference in New Issue
Block a user