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? |
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
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.badgenow hassize="3"available, and sizes"2"and"1"have been adjusted accordinglyrx.input.rootandrx.input.inputare deprecated. Just userx.inputas the root. It acceptsrx.input.slotas a child.rx.input.rootandrx.input.input[REF-2789] Graceful deprecation of rx.input.root and rx.input.input #3249Previously Deprecated Features Removed
get_asset_pathremovedstatetorx.Appscript_tagstorx.App.add_pagecustom_stylestorx.markdown(usecomponent_mapinstead)rx.Stategetters removed (useself.routerinstead)get_tokenget_sidget_headersget_client_ipget_current_pageget_query_paramsget_cookiesRemove 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 loadingloadingprop available forrx.buttonrx.icon_buttonrx.spinnerandrx.skeleton-- useloading=State.is_loadinginstead of usingrx.condrx.data_list- new component for showing key value pairsrx._x.progress- experimental radix themes progress component, supportsdurationfor 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.Stylefor default component stylesadd_imports- return a dictionary of{"library-name@0.5.0": {"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_xsetter functions which accept thevar_nameas a string.Experimental Toast Component
Generic
.throttleand.debouncefor all Event typesthrottleanddebounceas event actions by @masenf in Implementthrottleanddebounceas event actions #3091rx.containernew propstack_children_full_widthFor 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-formatv0.1by @Borda in ruff-format: unify Black with Ruffv0.1#2837Error Messages
rx.color_modechangesrx.color_mode.buttonnow has built in positioning prop for floating buttonDefault style for
rx.uploadUse Alembic Batch Mode for
reflex db makemigrationsThis improves compatibility with the default sqlite database when re-typing columns.
README
Miscellaneous
color_schemeon TabsTrigger by @masenf in Exposecolor_schemeon TabsTrigger #3112SocketIOinstanceBugfixes
--frontend-onlyfix ctrl + c by @ElijahAhianyo in Windows--frontend-onlyfix 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
All reactions