Skip to content

Commit

Permalink
docs: create docs page for details component
Browse files Browse the repository at this point in the history
  • Loading branch information
iisakkirotko committed Jun 6, 2024
1 parent 2ed7b0f commit e6e3d89
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 5 deletions.
10 changes: 5 additions & 5 deletions solara/components/details.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@ def Page():
expand=False
)
```
```
## Arguments:
## Arguments:
* summary: String showing the summary text for the expandable section: Defaults "Summary"
* children: List showing the children content of the expandable section: Defaults to an Empty list
* expand: Boolean showing if the section is expanded or collapsed: Defaults to False
* summary: String showing the summary text for the expandable section: Defaults "Summary"
* children: List showing the children content of the expandable section: Defaults to an Empty list
* expand: Boolean showing if the section is expanded or collapsed: Defaults to False
"""

expand, set_expand = solara.use_state_or_update(expand)
Expand Down
13 changes: 13 additions & 0 deletions solara/website/pages/documentation/components/layout/details.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
"""
# Details
"""

import solara
from solara.website.components import NoPage
from solara.website.utils import apidoc

title = "Details"

Page = NoPage

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

0 comments on commit e6e3d89

Please sign in to comment.