Skip to content
Enact

limestone/QuickGuidePanels

Provides a Limestone styled panels component for full screen size content panel with steps.

Usage:

<QuickGuidePanels>
	<QuickGuidePanels.Panel aria-label="This is a description for panel">
		QuickGuidePanelsContent
	</QuickGuidePanels.Panel>
</QuickGuidePanels>

A QuickGuidePanels that can step through different panels. Expects limestone/QuickGuidePanelslimestone/QuickGuidePanels.Panel as children.

Extends: limestone/QuickGuidePanelslimestone/QuickGuidePanels.QuickGuidePanelsBase
Wrapped with: ui/Changeableui/Changeable.Changeable

Properties

Called when the back button is pressed.

If ev.preventDefault is called, QuickGuidePanels will not process the event further. If it is not called, the index of the panel will be decremented unless noPrevButton is set.

Panel that sets the children for limestone/QuickGuidePanelslimestone/QuickGuidePanels.QuickGuidePanels.

Properties

The aria-label for the Panel.

Example:

<QuickGuidePanels.Panel aria-label="This is a description for panel">

BooleanComponent

The button to use in place of the standard next button.

This prop accepts a component (e.g. Button), a component instance or a boolean value.

If false, the button will not show. If set to a component, or true, the button will show. This will override the setting of limestone/QuickGuidePanelslimestone/QuickGuidePanels.QuickGuidePanelsBase.nextButtonVisibility.

Example:

nextButton={<Button icon="closex" aria-label="Quit">Close</Button>}

BooleanComponent

The button to use in place of the standard prev button.

This prop accepts a component (e.g. Button), a component instance or a boolean value.

If false, the button will not show. If set to a component, or true, the button will show. This will override the setting of limestone/QuickGuidePanelslimestone/QuickGuidePanels.QuickGuidePanelsBase.prevButtonVisibility.

Example:

prevButton={<Button icon="closex" aria-label="Back">Back</Button>}

A QuickGuidePanels that has steps with corresponding panels and panels have full screen size content.

Properties

Hint string read when focusing the close button.

Default: 'Exit Quick Guide'

FunctionObject

Obtains a reference to the root node.


The current step.

This is 1-based, not 0-based; as in the first step is 1. If omitted, this will equal the currently selected panel.


'auto''always''never'

Specifies when and how to show nextButton on QuickGuidePanel.

  • 'auto' will display the nextButton on every QuickGuidePanels.Panel except the last

  • 'always' will always display the nextButton

  • 'never' will always hide the nextButton

Note, children values will override the generalized parent visibility settings. In this case, a customized nextButton on QuickGuidePanels.Panel will take precedence over the nextButtonVisibility value.

Default: 'auto'

Called when the index value is changed.


Called when the close button is clicked.


Called when the next button is clicked in QuickGuidePanel.

Calling preventDefault on the passed event will prevent advancing to the next panel.


Called when previous button is clicked in QuickGuidePanel.

Calling preventDefault on the passed event will prevent navigation to the previous panel.


Called when a transition completes.


Called before a transition begins.


'auto''always''never'

Specifies when and how to show prevButton on QuickGuidePanel.

  • 'auto' will display the prevButton on every QuickGuidePanels.Panel except the first

  • 'always' will always display the prevButton

  • 'never' will always hide the prevButton

Note, children values will override the generalized parent visibility settings. In this case, if user provides a customized prevButton on QuickGuidePanels.Panel will take precedence over the prevButtonVisibility value.

Default: 'auto'

The total number of steps.

If omitted, this will equal the total number of Panels.