Skip to content

Widget empty state

NoData ​

Use this state to display "No data" (including "Nothing found") empty states.

jsx
import { NoData } from '@semcore/ui/widget-empty';
<NoData />;

NSWidgetEmptyNoData.Props ​

& & {...}
NameTypeDescription
description Error description. If it is absent, use the local default one
type Data types

Error ​

Use this state to display error messages.

jsx
import { Error } from '@semcore/ui/widget-empty';
<Error />;

NSWidgetEmptyError.Props ​

& & {...}
NameTypeDescription
description Error description. If it is absent, use the local default one

WidgetEmpty ​

Use this component to display customized empty states.

jsx
import WidgetEmpty from '@semcore/ui/widget-empty';
<WidgetEmpty />;

NSWidgetEmpty.Props ​

& {...}
NameTypeDescription
icon URL before the icon or the whole component

Images ​

You can find all the possible images for the component in the Illustration component. To obtain any illustration, you can use the getIllustrationPath function, which returns the URL in the format https://static.semrush.com/ui-kit/illustration/${version}/${name}.svg.

Released under the MIT License.

Released under the MIT License.