moonstone/Region

Exports the orientation component.

import Region from '@enact/moonstone/Region';

Members

RegionComponent

moonstone/Region.Region provides a labeled region to group components. The title is wrapped by a moonstone/Divider.Divider which precedes any children.

<Region title="Select an Option">
  <Group childComponent={CheckboxItem} selectedProp="selected">
    {items}
  </Group>
</Region>
import Region from '@enact/moonstone/Region';
Properties
title
String

The title of the region placed within an instance of moonstone/Divider.Divider before the children.

aria-label
String

Sets the aria-label for the region. If unset, it defaults to the value of title

children
Node

The contents of the region

ArrayBooleanFunctionModuleNumberObjectString