Skip to content

Commit

Permalink
docs update code markdown
Browse files Browse the repository at this point in the history
  • Loading branch information
lizzy985 authored and iisakkirotko committed Dec 30, 2024
1 parent 0fe6947 commit 16bbbfc
Showing 1 changed file with 10 additions and 13 deletions.
23 changes: 10 additions & 13 deletions solara/website/pages/documentation/components/output/markdown.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,19 +38,16 @@ def Page():

markdown_text, set_markdown_text = solara.use_state(markdown_initial)
# with solara.GridFixed(columns=2) as main:
with solara.HBox(grow=True) as main:
with solara.Column():
solara.Markdown("# Input text")
with solara.Padding(2):
with solara.v.Sheet(elevation=2):
solara.v.Textarea(v_model=markdown_text, on_v_model=set_markdown_text, rows=30)
with solara.Column():
solara.Markdown("# Renders like")
with solara.Padding(2):
with solara.v.Sheet(elevation=2):
solara.Markdown(markdown_text)

return main
with solara.Column():
solara.Markdown("# Input text")
with solara.Padding(2):
with solara.v.Sheet(elevation=2):
solara.v.Textarea(v_model=markdown_text, on_v_model=set_markdown_text, rows=30)
with solara.Column():
solara.Markdown("# Renders like")
with solara.Padding(2):
with solara.v.Sheet(elevation=2):
solara.Markdown(markdown_text)


__doc__ += apidoc(solara.Markdown.f) # type: ignore

0 comments on commit 16bbbfc

Please sign in to comment.