Replies: 1 comment 2 replies
-
Hi @masenf, Using
to push components off to opposite sides of the window, but this no longer works, whether I remove the width="100%" or leave it there, when stack_children_full_width is set to True. Is there a different setting I should make to get the same behavior, for children of containers? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Try out the Prerelease
Please report any problems you encounter in this discussion thread or as separate issues on reflex-dev/reflex.
pip install 'reflex~=0.5.0a'
Schedule
2024-05-08 17:06 PDT: 0.5.0a1 pre-release published for testing
2024-05-13 18:00 PDT: 0.5.0 Public release
Release Notes
Breaking Changes
Radix Themes 3.0
rx.badge
now hassize="3"
available, and sizes"2"
and"1"
have been adjusted accordinglyrx.input.root
andrx.input.input
are deprecated. Just userx.input
as the root. It acceptsrx.input.slot
as a child.rx.input.root
andrx.input.input
[REF-2789] Graceful deprecation of rx.input.root and rx.input.input #3249Previously Deprecated Features Removed
get_asset_path
removedstate
torx.App
script_tags
torx.App.add_page
custom_styles
torx.markdown
(usecomponent_map
instead)rx.State
getters removed (useself.router
instead)get_token
get_sid
get_headers
get_client_ip
get_current_page
get_query_params
get_cookies
Remove deprecations for 0.5.0 by @picklelo in #3222
New Features
Radix Themes 3.0
rx.spinner
- new component for indeterminate loadingrx.skeleton
- new component for placeholder loadingloading
prop available forrx.button
rx.icon_button
rx.spinner
andrx.skeleton
-- useloading=State.is_loading
instead of usingrx.cond
rx.data_list
- new component for showing key value pairsrx._x.progress
- experimental radix themes progress component, supportsduration
for indeterminate progress.Radix 3.0 by @Lendemor in #3159
New Public API for wrapping Components
To make wrapping components easier and less error prone, the following functions should be overridden when wrapping components:
add_style
- return anrx.style.Style
for default component stylesadd_imports
- return a dictionary of{"[email protected]": {"tag1", "tag2", "tag3"}}
of required imports -- it will automatically be merged with the other component imports.add_hooks
- return a list of javascript snippets that will go inside the component function -- it will be deduped automatically with any other hooksadd_custom_code
- return a list of javascript snippets that will go inside the module for each page the component is included in.With these new methods, Reflex will internally call them for each parent class your component inherits from, so there is no need to call
super().add_*
or do any merging yourself.State.setvar(var_name, value)
A less magic version of the automatic
State.set_x
setter functions which accept thevar_name
as a string.Experimental Toast Component
Generic
.throttle
and.debounce
for all Event typesthrottle
anddebounce
as event actions by @masenf in Implementthrottle
anddebounce
as event actions #3091rx.container
new propstack_children_full_width
For a nice streamlit-like wide layout, use the following snippet:
This will cause all vstack/hstack children and most stack child components to have
width="100%"
automatically, which provides a nice aesthetic for many apps without applying CSS to individual components.Improvements
Unify on
ruff-format
v0.1
by @Borda in ruff-format: unify Black with Ruffv0.1
#2837Error Messages
rx.color_mode
changesrx.color_mode.button
now has built in positioning prop for floating buttonDefault style for
rx.upload
Use Alembic Batch Mode for
reflex db makemigrations
This improves compatibility with the default sqlite database when re-typing columns.
README
Miscellaneous
color_scheme
on TabsTrigger by @masenf in Exposecolor_scheme
on TabsTrigger #3112SocketIO
instanceBugfixes
--frontend-only
fix ctrl + c by @ElijahAhianyo in Windows--frontend-only
fix ctrl + c #3181Dependencies
Other Changes
__init__
of App class by @nautics889 in fix: args issue in __init__ of App class (#3140) #3141__str__
by @masenf in Allow StatefulComponent to also be rendered via __str__ #3211__subclasses__
, prevent issues with AppHarness by @benedikt-bartscher in do not access state __subclasses__, prevent issues with AppHarness #3143New Contributors
v0.1
#2837Full Changelog: v0.4.9...reflex-0.5.0
Beta Was this translation helpful? Give feedback.
All reactions