For updates follow @lineindent on YouTube

Reflexify

Home

Setup

Material

LineIndent/reflexify

reflexify-0.0.8

26

1

Setup

Accordions

Accordion setup

Accordions are dynamic user interface elements often used in web and app design to present content in a space-efficient manner. Comprising vertically stacked panels, accordions enable users to expand sections of interest while collapsing others, promoting an organized and uncluttered display. By clicking on a section's header, users can reveal underlying information, making accordions particularly effective for presenting FAQs, navigation menus, or categorized content.

Basic accordion useage

Implementing an accordion is fairly straightforward. Simply pass in the type of accordian, a title, and a list of accordion, if needed, and that will generate a custom accordion for you.

1from app.core.base import RxBasePage
2from app.helpers.nav_helpers import NavHelper
3import reflex as rx
4import app.material as rf
5
6class RxPage:
7    ...
8
9    def __components__(self):
10        return [
11            rf.Admonition(
12                "info",
13                "Info",
14                [
15                    rx.accordion_panel("Insert text here...")
16                ],
17            ).build(),
18        ]
19
20    def build(self):
21        ...
22

Supported types

There are several supported accordions, each with a unique icon. Moreover, you can pass in a title and more items inside. Here are the available accordions:

info

warning_two

close

calendar

question

check

Made with Reflex & Reflexify

Copyright © 2022 - 2023 S. Ahmad P. Hakimi

Made with Reflex & Reflexify

Copyright © 2022 - 2023 S. Ahmad P. Hakimi

Made with Reflex & Reflexify

Copyright © 2022 - 2023 S. Ahmad P. Hakimi

For updates follow @lineindent on YouTube

Accordion setup

Accordions are dynamic user interface elements often used in web and app design to present content in a space-efficient manner. Comprising vertically stacked panels, accordions enable users to expand sections of interest while collapsing others, promoting an organized and uncluttered display. By clicking on a section's header, users can reveal underlying information, making accordions particularly effective for presenting FAQs, navigation menus, or categorized content.

Basic accordion useage

Implementing an accordion is fairly straightforward. Simply pass in the type of accordian, a title, and a list of accordion, if needed, and that will generate a custom accordion for you.

1from app.core.base import RxBasePage
2from app.helpers.nav_helpers import NavHelper
3import reflex as rx
4import app.material as rf
5
6class RxPage:
7    ...
8
9    def __components__(self):
10        return [
11            rf.Admonition(
12                "info",
13                "Info",
14                [
15                    rx.accordion_panel("Insert text here...")
16                ],
17            ).build(),
18        ]
19
20    def build(self):
21        ...
22

Supported types

There are several supported accordions, each with a unique icon. Moreover, you can pass in a title and more items inside. Here are the available accordions:

info

warning_two

close

calendar

question

check

Made with Reflex & Reflexify

Copyright © 2022 - 2023 S. Ahmad P. Hakimi

Made with Reflex & Reflexify

Copyright © 2022 - 2023 S. Ahmad P. Hakimi

Made with Reflex & Reflexify

Copyright © 2022 - 2023 S. Ahmad P. Hakimi