Skip to content

Commit

Permalink
add mwe / testing example
Browse files Browse the repository at this point in the history
  • Loading branch information
Jhsmit committed Nov 19, 2024
1 parent 3dd3d07 commit 4dca46d
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions examples/mwe_solara.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import solara
from ipymolstar import PDBeMolstar


@solara.component
def Page():
expanded = solara.use_reactive(True)

with solara.Sidebar():
solara.Checkbox(label="Expanded", value=expanded)

with solara.Card(style={"width": "500px"}):
PDBeMolstar.element(
hide_controls_icon=True,
hide_expand_icon=True,
hide_settings_icon=True,
hide_selection_icon=True,
molecule_id="1qyn",
expanded=expanded.value,
)

0 comments on commit 4dca46d

Please sign in to comment.