-
Notifications
You must be signed in to change notification settings - Fork 147
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
docs update code info #899
Conversation
for more information, see https://pre-commit.ci
dense, set_dense = solara.use_state(False) | ||
outlined, set_outlined = solara.use_state(True) | ||
text, set_text = solara.use_state(True) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here, replace use_state
with use_reactive
cded5b2
to
32af76f
Compare
ef5a902
to
d790a19
Compare
solara.Checkbox(label="Show as text", value=text) | ||
solara.Checkbox(label="Show outlined", value=outlined) | ||
solara.Info( | ||
f"This is solara.Info(label='...', text={text}, dense={dense}, outlined={outlined}, icon={icon})", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should also use .value
here.
f"This is solara.Info(label='...', text={text}, dense={dense}, outlined={outlined}, icon={icon})", | |
f"This is solara.Info(label='...', text={text.value}, dense={dense.value}, outlined={outlined.value}, icon={icon.value})", |
text=text, | ||
dense=dense, | ||
outlined=outlined, | ||
icon=icon, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And here
text=text, | |
dense=dense, | |
outlined=outlined, | |
icon=icon, | |
text=text.value, | |
dense=dense.value, | |
outlined=outlined.value, | |
icon=icon.value, |
…olara into docs_update_code_info
No description provided.