README
title: 'Empty State' description: 'Empty states provide users with feedback on the reasons behind the empty state and what they can do to move out of the empty state.' lexiconDefinition: 'https://liferay.design/lexicon/core-components/empty-states/' packageNpm: '@clayui/empty-state'
import { EmptyState, EmptyStateWithImage, } from '$packages/clay-empty-state/docs/index';
Without Animation
By ommiting the imgSrc
prop you will render a default Empty State component.
Even without an animation you can still pass in children
to the component as seen with the ClayButton
component in this example.
With Animation
Adding an image to the component is easy, just point the imgSrc
to the image you want to use