Empty State

Placeholder with illustration, message, and action shown when no data is available

Live Code

 

Storybook

 

Usage

EmptyState

EmptyState component should be included in the error pages or empty state pages as the carrier of information and links to elsewhere.

EmptyState component is a composition of the following components:

EmptyState

The EmptyState component is a main container responsible for positioning the EmptyStateSection components or content.


                                                
                                                <EmptyState>
                                                  <!-- EmptyStateSection components or content go here -->
                                                </EmptyState>

API

The component is based on the Stack component and accepts all its properties. For more information, see the Stack component API.

EmptyStateSection

The EmptyStateSection component is a container for the content of each section.


                                                
                                                <EmptyStateSection>
                                                  <!-- Content goes here -->
                                                </EmptyStateSection>

API

The component is based on the Stack component and accepts all its properties. For more information, see the Stack component API.

Full Example


                                                
                                                <EmptyState spacing="space-900">
                                                  <EmptyStateSection>
                                                    <Icon name="search" isSymbol />
                                                  </EmptyStateSection>
                                                  <EmptyStateSection>
                                                    <Heading elementType="h2">Heading</Heading>
                                                    <Text>Description</Text>
                                                  </EmptyStateSection>
                                                  <EmptyStateSection>
                                                    <ActionGroup alignmentX={{ mobile: 'stretch', tablet: 'center' }}>
                                                      <ButtonLink href="#">Primary Action</ButtonLink>
                                                      <ButtonLink href="#" color="secondary">
                                                        Secondary Action
                                                      </ButtonLink>
                                                    </ActionGroup>
                                                  </EmptyStateSection>
                                                  <EmptyStateSection>
                                                    <Link href="#">Link to something</Link>
                                                  </EmptyStateSection>
                                                </EmptyState>