Skip to content
IzzyBlazor 0.1.0-alpha.17

Enter all results ↑ ↓ move Esc close

Accordion

Sections that open and close with no script.

IzzyBlazor.Accordion in the IzzyBlazor.Core package, generated from the 0.1.0-alpha.17 assembly and its doc comments.

Properties (7)

Exclusivebool = false

Keeps only one item open at a time. Opening one closes the others.

VariantAccordionVariant = AccordionVariant.Separated

How the items are drawn. Defaults to AccordionVariant.Separated.

SizeControlSize = ControlSize.Md

Spacing and title size: ControlSize.Sm for sidebars and dense pages, ControlSize.Lg for FAQ pages. Defaults to ControlSize.Md.

ContentPaddingResponsive<int>Responsive

Padding inside every item's content, in spacing steps. By default it lines up with the titles; 0 lets content such as a table run edge to edge.

ContentGapResponsive<int>Responsive

Space between the children of every item's content, in spacing steps.

Namestring?

The shared name for exclusive items. Generated when not set; set it to keep several accordions in one group.

ChildContentRenderFragment?

Item props (from LayoutItemBase)

MarginResponsive<int>Responsive

Margin on all sides, in spacing steps (-16 to 16; one step = 4px).

MarginXResponsive<int>Responsive

Horizontal margin. When set, replaces Margin on this axis.

MarginYResponsive<int>Responsive

Vertical margin. When set, replaces Margin on this axis.

MarginTopResponsive<int>Responsive

Top margin. When set, replaces MarginY and Margin on this side.

MarginBottomResponsive<int>Responsive

Bottom margin. When set, replaces MarginY and Margin on this side.

MarginStartResponsive<int>Responsive

Margin at the start (left in left-to-right text, right in right-to-left). Replaces MarginX and Margin on this side.

MarginEndResponsive<int>Responsive

Margin at the end (right in left-to-right text, left in right-to-left). Replaces MarginX and Margin on this side.

WidthResponsive<Length>Responsive

Width.

MinWidthResponsive<Length>Responsive

Minimum width.

MaxWidthResponsive<Length>Responsive

Maximum width.

Growbool = false

Whether to grow into free space inside a Stack, Row or Column: <Box Grow>.

Shrinkbool = true

Whether to shrink when space is short inside a Stack, Row or Column. Defaults to true; Shrink="false" keeps the size.

BasisResponsive<Length>Responsive

Starting size inside a Stack, before growing or shrinking.

AlignSelfResponsive<Align>Responsive

Alignment across the parent's direction, overriding the parent's Align for this component only, such as a button lined up with the bottom of labeled fields in a Row.

ColSpanResponsive<int>Responsive

How many columns it spans in a Form or Fieldset with Columns, or a Grid; GridSpan.Full for the whole row. Never more than the columns shown, so a form that narrows to one column needs no breakpoints.

NewRowbool = false

Starts a new row in a Form or Fieldset with Columns, or a Grid, leaving the rest of the row before it empty.

Common props (from IzzyComponentBase)

Classstring?

Extra CSS classes, merged after the component's own classes.

Stylestring?

Inline style, appended after the component's generated custom properties.

HiddenFromBreakpoint?

Hides the component from this breakpoint up, such as a menu button only phones need.

VisibleFromBreakpoint?

Shows the component only from this breakpoint up, such as header links for wide screens.

Events (0)

No events.

Parts (2)

Components written inside Accordion, documented here with it.

AccordionItem

One section of an Accordion: a native <details> with the title in its <summary>. The browser opens and closes it; on interactive pages @bind-Open follows along.

Titlestring?

The heading text. Use an AccordionHeader for richer content.

IconIconData?

An icon before the heading.

Disabledbool = false

Stops the item from being opened or closed.

ContentPaddingResponsive<int>Responsive

Padding inside the content, in spacing steps, in place of the accordion's. 0 lets content such as a table or image run edge to edge.

ContentGapResponsive<int>Responsive

Space between the content's children, in spacing steps, in place of the accordion's.

ChildContentRenderFragment?

The content. It is laid out as a column with a gap, so paragraphs, lists and buttons are spaced without a wrapper.

@bind-Openbool = false @bind: Interactive only

Whether it is open. Use @bind-Open to follow changes on interactive pages.

Idstring?

The element id. Generated when not set.

AccordionHeader

Heading content for an AccordionItem in place of its Title, such as a title with a badge. Keep it to inline content: it's drawn in the item's summary. Write it directly in the item.

ChildContentRenderFragment?

The part's content.

Types (2)

AccordionVariant

enum

How an Accordion draws its items.

AccordionVariant values
ValueDescription
Separated

Each item is its own bordered card, with space between (the default).

Bordered

One bordered box with dividers between items.

Flush

Dividers only, no outer border or padding at the sides. For sidebars and dense pages.

ControlSize

enum

The height of interactive controls. Shared by buttons and form fields, so a button and an input of the same size line up in a row.

ControlSize values
ValueDescription
Sm

32px tall, small text.

Md

36px tall (the default).

Lg

44px tall, large text. For touch-first and marketing pages.