sandstone/ Key Guide
Sandstone styled key guide component and behaviors.
import KeyGuide from '@enact/sandstone/KeyGuide';Members
KeyGuideComponent
A Key Guide component, ready to use in Sandstone applications.
`KeyGuide' may be used to display list of text with icons to describe key behavior.
Usage:
<KeyGuide
open
>
{[
{icon: 'star', children: 'start label', key: 1},
{icon: 'plus', children: 'plus label', key: 2},
{icon: 'minus', children: 'minus label', key: 3}
]}
</KeyGuide>import KeyGuide from '@enact/sandstone/KeyGuide';KeyGuideBaseComponent
A Key Guide component.
This component is most often not used directly but may be composed within another component as it is within KeyGuide.
import {KeyGuideBase} from '@enact/sandstone/KeyGuide';Properties
The items to be displayed in the
KeyGuidewhenopen.Takes an array of objects. The properties will be passed onto an
Itemcomponent. The object requireschildren, and a uniquekeyproperty. If theiconproperty is one of'red','green','yellow'or 'blue', a corresponding color bar is shown.Customizes the component by mapping the supplied collection of CSS class names to the corresponding internal elements and states of this component.
The following classes are supported:
keyGuide- The root component class
Controls the visibility of the KeyGuide.
KeyGuideDecoratorHigher-Order Component
Applies Sandstone specific behaviors to KeyGuide.
import {KeyGuideDecorator} from '@enact/sandstone/KeyGuide';