RemixRemix

Catalog

Every Fortal widget with its sizes, variants, defaults, and supported behavior

Every widget below is recorded in Fortal’s own contract that melos fortal:check holds against the Dart recipes, so the sizes, variants, and defaults on this page are the ones a caller actually gets.

This is the API reference. Start with the Fortal overview for installation and theming. For live examples and source, choose a component in the sidebar, such as Button.

A — value means the widget does not expose that axis. When values are listed but their default is —, the parameter is nullable with no pinned value. That is the typography path: an omitted size or weight resolves from the active scope's tokens (text3, regular) rather than from an enum, so a host text run cannot resize Fortal text. See Typography.

At a glance

WidgetSizesSize defaultVariantsVariant default
FortalAccordionsize1, size2, size3size2surface, softsurface
FortalAppBar————
FortalAvatarsize1, size2, size3, size4, size5, size6, size7, size8, size9size3soft, solidsoft
FortalBadgesize1, size2, size3size1solid, soft, surface, outlinesoft
FortalButtonsize1, size2, size3, size4size2solid, soft, surface, outline, ghostsolid
FortalCalloutsize1, size2, size3size2soft, surface, outlinesoft
FortalCardsize1, size2, size3, size4, size5size1surface, ghostsurface
FortalCheckboxsize1, size2, size3size2surface, softsurface
FortalCodesize1, size2, size3, size4, size5, size6, size7, size8, size9—solid, soft, outline, ghostsoft
FortalDataListsize1, size2, size3size2——
FortalDataTablesize1, size2, size3size2surface, ghostghost
FortalDialogsize1, size2, size3, size4size3——
FortalDisclosuresize1, size2, size3size2surface, softsurface
FortalDividersize1, size2, size3, size4size1——
FortalHeadingsize1, size2, size3, size4, size5, size6, size7, size8, size9size6——
FortalIconButtonsize1, size2, size3, size4size2solid, soft, surface, outline, ghostsolid
FortalKbdsize1, size2, size3, size4, size5, size6, size7, size8, size9—softsoft
FortalLineChart————
FortalLinksize1, size2, size3, size4, size5, size6, size7, size8, size9———
FortalMenusize1, size2size2solid, softsolid
FortalPopoversize1, size2, size3, size4size2——
FortalProgresssize1, size2, size3size2surface, softsurface
FortalRadiosize1, size2, size3size2surface, softsurface
FortalSegmentedControlsize1, size2, size3size2surfacesurface
FortalSelectsize1, size2, size3size2surface, soft, ghostsurface
FortalSidebar————
FortalSidebarLayout————
FortalSkeleton————
FortalSlidersize1, size2, size3size2surface, softsurface
FortalSpinnersize1, size2, size3size2——
FortalSwitchsize1, size2, size3size2surface, softsurface
FortalTabBarsize1, size2size2 (on FortalTab)——
FortalTextsize1, size2, size3, size4, size5, size6, size7, size8, size9———
FortalTextAreasize1, size2, size3size2surface, softsurface
FortalTextFieldsize1, size2, size3size2surface, softsurface
FortalToastsize1, size2, size3size2surface, classicclassic
FortalTogglesize1, size2, size3size2ghost, outlineghost
FortalToggleGroupsize1, size2, size3size2soft, surfacesoft
FortalTooltip————

Actions and inputs

FortalButton

Recipe registry_source/lib/src/fortal/components/button.dart

ParameterValuesDefault
sizesize1, size2, size3, size4size2
variantsolid, soft, surface, outline, ghostsolid

Named constructors: FortalButton.ghost, FortalButton.outline, FortalButton.soft, FortalButton.solid, FortalButton.surface

Other defaults: enabled: true, highContrast: false, loading: false

Style props: color, radius, highContrast

States: idle, hovered, pressed, focused, disabled, loading, highContrast

FortalIconButton

Recipe registry_source/lib/src/fortal/components/icon_button.dart

ParameterValuesDefault
sizesize1, size2, size3, size4size2
variantsolid, soft, surface, outline, ghostsolid

Named constructors: FortalIconButton.ghost, FortalIconButton.outline, FortalIconButton.soft, FortalIconButton.solid, FortalIconButton.surface

Other defaults: enabled: true, highContrast: false, loading: false, semanticLabel: required

Style props: color, radius, highContrast

States: idle, hovered, pressed, focused, disabled, loading, highContrast

FortalCheckbox

Recipe registry_source/lib/src/fortal/components/checkbox.dart

ParameterValuesDefault
sizesize1, size2, size3size2
variantsurface, softsurface

Named constructors: FortalCheckbox.soft, FortalCheckbox.surface

Other defaults: enabled: true, highContrast: false, selected: false, tristate: false

Style props: color, highContrast

States: unchecked, checked, indeterminate, hovered, pressed, focused, disabled, highContrast

FortalRadio

Recipe registry_source/lib/src/fortal/components/radio.dart

ParameterValuesDefault
sizesize1, size2, size3size2
variantsurface, softsurface

Named constructors: FortalRadio.soft, FortalRadio.surface

Other defaults: enabled: true, highContrast: false

Style props: color, highContrast

States: unchecked, checked, hovered, pressed, focused, disabled, highContrast, group

FortalSelect

Recipe registry_source/lib/src/fortal/components/select.dart

ParameterValuesDefault
sizesize1, size2, size3size2
variantsurface, soft, ghostsurface

Named constructors: FortalSelect.ghost, FortalSelect.soft, FortalSelect.surface

Other defaults: contentHighContrast: false, open: null

Style props: color, radius, highContrast

States: closed, open, placeholder, selected, highlighted, disabled, highContrast

FortalSlider

Recipe registry_source/lib/src/fortal/components/slider.dart

ParameterValuesDefault
sizesize1, size2, size3size2
variantsurface, softsurface

Named constructors: FortalSlider.soft, FortalSlider.surface

Other defaults: highContrast: false, inverted: false, max: 100, min: 0, minSpacing: 0, step: 1

Style props: color, radius, highContrast

States: idle, hovered, pressed, focused, disabled, highContrast, rtl

FortalSwitch

Recipe registry_source/lib/src/fortal/components/switch.dart

ParameterValuesDefault
sizesize1, size2, size3size2
variantsurface, softsurface

Named constructors: FortalSwitch.soft, FortalSwitch.surface

Other defaults: enabled: true, highContrast: false, selected: false

Style props: color, radius, highContrast

States: unchecked, checked, hovered, pressed, focused, disabled, highContrast

FortalTextArea

Recipe registry_source/lib/src/fortal/components/textfield.dart

ParameterValuesDefault
sizesize1, size2, size3size2
variantsurface, softsurface

Named constructors: FortalTextArea.soft, FortalTextArea.surface

Other defaults: enabled: true, error: false, maxLines: null, readOnly: false

Style props: color, radius

States: idle, hovered, focused, disabled, readOnly, invalid

FortalTextField

Recipe registry_source/lib/src/fortal/components/textfield.dart

ParameterValuesDefault
sizesize1, size2, size3size2
variantsurface, softsurface

Named constructors: FortalTextField.soft, FortalTextField.surface

Other defaults: enabled: true, error: false, readOnly: false

Style props: color, radius

States: idle, hovered, focused, disabled, readOnly, invalid, leading, trailing

FortalToggle

Recipe registry_source/lib/src/fortal/components/toggle.dart

ParameterValuesDefault
sizesize1, size2, size3size2
variantghost, outlineghost

Named constructors: FortalToggle.ghost, FortalToggle.outline

Other defaults: enabled: true, highContrast: false, selected: false

Style props: color, radius, highContrast

States: off, on, hovered, pressed, focused, disabled, highContrast

FortalToggleGroup

Recipe registry_source/lib/src/fortal/components/toggle_group.dart

ParameterValuesDefault
orientationhorizontal, verticalhorizontal
sizesize1, size2, size3size2
variantsoft, surfacesoft

Named constructors: FortalToggleGroup.soft, FortalToggleGroup.surface

Other defaults: enabled: true, highContrast: false, loop: true

Style props: color, radius, highContrast

States: unselected, selected, hovered, pressed, focused, disabled, highContrast, rtl

FortalAppBar

Recipe registry_source/lib/src/fortal/components/app_bar.dart

Recipe registry_source/lib/src/fortal/components/link.dart

ParameterValuesDefault
sizesize1, size2, size3, size4, size5, size6, size7, size8, size9—
underlineauto, always, hover, noneauto
weightlight, regular, medium, bold—

Other defaults: autofocus: false, enableFeedback: true, enabled: true, excludeSemantics: false, highContrast: false, softWrap: true, truncate: false

Style props: color, radius, highContrast

States: idle, hovered, focused, disabled, highContrast, inert, truncated, semantic

FortalMenu

Recipe registry_source/lib/src/fortal/components/menu.dart

ParameterValuesDefault
sizesize1, size2size2
variantsolid, softsolid

Named constructors: FortalMenu.soft, FortalMenu.solid

Other defaults: highContrast: false, submenuOpenDelayMilliseconds: 100

Style props: color, highContrast

States: closed, open, highlighted, disabled, checked, unchecked, submenuOpen, rtl, escape, focusRestored, highContrast

FortalSegmentedControl

Recipe registry_source/lib/src/fortal/components/segmented_control.dart

ParameterValuesDefault
sizesize1, size2, size3size2
variantsurfacesurface

Named constructors: FortalSegmentedControl.surface

Other defaults: enabled: true, loop: true, orientation: horizontal

Style props: radius

States: unselected, selected, hovered, pressed, focused, disabled, rtl

FortalSidebar

Recipe registry_source/lib/src/fortal/components/sidebar.dart

FortalTabBar

Recipe registry_source/lib/src/fortal/components/tabs.dart

ParameterValuesDefault
activationModeautomatic, manualautomatic
orientationhorizontal, verticalhorizontal
sizesize1, size2size2 (on FortalTab)

Other defaults: highContrast: false

Style props: color, highContrast

States: inactive, active, hovered, pressed, focused, disabled, automatic, manual, rtl, highContrast

Overlays

FortalDialog

Recipe registry_source/lib/src/fortal/components/dialog.dart

ParameterValuesDefault
alignstart, centercenter
sizesize1, size2, size3, size4size3

Other defaults: maxWidth: 600, modal: true, width: infinity

States: closed, open, modal

FortalPopover

Recipe registry_source/lib/src/fortal/components/popover.dart

ParameterValuesDefault
sizesize1, size2, size3, size4size2

Other defaults: arrow: false, maxWidth: 480

States: closed, open, escape, outsideTap, focusRestored

FortalTooltip

Recipe registry_source/lib/src/fortal/components/tooltip.dart

Other defaults: arrow: true, collisionPadding: 10, delayMilliseconds: 200, disableHoverableContent: false, maxWidth: 360, sideOffset: 4

States: closed, delayedOpen, triggerHovered, focused, touch, escape

FortalToast

Recipe registry_source/lib/src/fortal/components/toast.dart

ParameterValuesDefault
intentaccent, neutral, erroraccent
sizesize1, size2, size3size2
variantsurface, classicclassic

Named constructors: FortalToast.classic, FortalToast.surface

Feedback

FortalCallout

Recipe registry_source/lib/src/fortal/components/callout.dart

ParameterValuesDefault
sizesize1, size2, size3size2
variantsoft, surface, outlinesoft

Named constructors: FortalCallout.outline, FortalCallout.soft, FortalCallout.surface

Other defaults: highContrast: false

Style props: color, highContrast

States: idle, highContrast

FortalProgress

Recipe registry_source/lib/src/fortal/components/progress.dart

ParameterValuesDefault
sizesize1, size2, size3size2
variantsurface, softsurface

Named constructors: FortalProgress.soft, FortalProgress.surface

Other defaults: durationMilliseconds: 5000, highContrast: false, max: 100, value: null

Style props: color, radius, highContrast

States: determinate, highContrast

FortalSkeleton

Recipe registry_source/lib/src/fortal/components/skeleton.dart

Other defaults: loading: true

States: loading, loaded, animationDisabled

FortalSpinner

Recipe registry_source/lib/src/fortal/components/spinner.dart

ParameterValuesDefault
sizesize1, size2, size3size2

Other defaults: color: currentColor, leafCount: 8, loading: true

States: spinning, animationDisabled

Layout

FortalAccordion

Recipe registry_source/lib/src/fortal/components/accordion.dart

ParameterValuesDefault
sizesize1, size2, size3size2
variantsurface, softsurface

Named constructors: FortalAccordion.soft, FortalAccordion.surface

Other defaults: enabled: true

Style props: color, radius

States: collapsed, expanded, hovered, pressed, focused, disabled

FortalCard

Recipe registry_source/lib/src/fortal/components/card.dart

ParameterValuesDefault
sizesize1, size2, size3, size4, size5size1
variantsurface, ghostsurface

Named constructors: FortalCard.ghost, FortalCard.surface

Other defaults: enabled: true

States: idle, passive

FortalDisclosure

Recipe registry_source/lib/src/fortal/components/disclosure.dart

ParameterValuesDefault
sizesize1, size2, size3size2
variantsurface, softsurface

Named constructors: FortalDisclosure.soft, FortalDisclosure.surface

Other defaults: defaultExpanded: false, enabled: true, expanded: null

Style props: color, radius

States: collapsed, expanded, hovered, pressed, focused, disabled

FortalDivider

Recipe registry_source/lib/src/fortal/components/divider.dart

ParameterValuesDefault
orientationhorizontal, verticalhorizontal
sizesize1, size2, size3, size4size1

Other defaults: color: gray, decorative: true, lengths: [16, 32, 64, full], thickness: 1

Style props: color

States: decorative, semantic

Data display

FortalAvatar

Recipe registry_source/lib/src/fortal/components/avatar.dart

ParameterValuesDefault
sizesize1, size2, size3, size4, size5, size6, size7, size8, size9size3
variantsoft, solidsoft

Named constructors: FortalAvatar.soft, FortalAvatar.solid

Other defaults: highContrast: false

Style props: color, radius, highContrast

States: idle, loading, loaded, error, highContrast

FortalBadge

Recipe registry_source/lib/src/fortal/components/badge.dart

ParameterValuesDefault
sizesize1, size2, size3size1
variantsolid, soft, surface, outlinesoft

Named constructors: FortalBadge.outline, FortalBadge.soft, FortalBadge.solid, FortalBadge.surface

Other defaults: highContrast: false

Style props: color, radius, highContrast

States: idle, highContrast

FortalDataList

Recipe registry_source/lib/src/fortal/components/data_list.dart

ParameterValuesDefault
alignmentstart, center, end, baseline, stretchbaseline
orientationhorizontal, verticalhorizontal
sizesize1, size2, size3size2

Other defaults: highContrast: false

Style props: highContrast

States: idle, highContrast, customChild, rtl

FortalDataTable

Recipe registry_source/lib/src/fortal/components/data_table.dart

ParameterValuesDefault
sizesize1, size2, size3size2
variantsurface, ghostghost

Named constructors: FortalDataTable.ghost, FortalDataTable.surface

Other defaults: enabled: true

States: idle, passive, hovered, selected

Layout and charts

FortalLineChart

Recipe registry_source/lib/src/fortal/components/chart.dart

FortalSidebarLayout

Recipe registry_source/lib/src/fortal/components/sidebar_layout.dart

Typography

FortalHeading

Recipe registry_source/lib/src/fortal/components/heading.dart

ParameterValuesDefault
sizesize1, size2, size3, size4, size5, size6, size7, size8, size9size6
weightlight, regular, medium, boldbold

Other defaults: accent: false, align: null, excludeSemantics: false, headingLevel: 1, highContrast: false, softWrap: true, truncate: false

Style props: color, highContrast

States: idle, accent, highContrast, truncated, semantic

FortalText

Recipe registry_source/lib/src/fortal/components/text.dart

ParameterValuesDefault
sizesize1, size2, size3, size4, size5, size6, size7, size8, size9—
weightlight, regular, medium, bold—

Other defaults: accent: false, align: null, highContrast: false, softWrap: true, truncate: false

Style props: color, highContrast

States: idle, accent, highContrast, truncated

FortalCode

Recipe registry_source/lib/src/fortal/components/code.dart

ParameterValuesDefault
sizesize1, size2, size3, size4, size5, size6, size7, size8, size9—
variantsolid, soft, outline, ghostsoft
weightlight, regular, medium, bold—

Named constructors: FortalCode.ghost, FortalCode.outline, FortalCode.soft, FortalCode.solid

Other defaults: accent: false, highContrast: false, softWrap: true, truncate: false

Style props: color, radius, highContrast

States: idle, accent, highContrast, truncated

FortalKbd

Recipe registry_source/lib/src/fortal/components/kbd.dart

ParameterValuesDefault
sizesize1, size2, size3, size4, size5, size6, size7, size8, size9—
variantsoftsoft

Named constructors: FortalKbd.soft

Other defaults: excludeSemantics: false

Style props: radius

States: idle, explicitDark, semantic

View page source on GitHub