Components

EmptyState

Empty state layout

tsx
import { EmptyState } from '@precursor/empty-state';

Example

No saved views

Saved views appear here for quick access.

tsx
import { EmptyState } from '@precursor/empty-state';
import Heading from '@precursor/heading';
import Text from '@precursor/text';
import Button from '@precursor/button';
export default function Example() {
    return (
        <EmptyState>
            <Heading as="h2" size="h4">
                No saved views
            </Heading>
            <Text>Saved views appear here for quick access.</Text>
            <Button primary>Create a view</Button>
        </EmptyState>
    );
}

Props

EmptyState props
PropTypeDefaultNotes
childrenRequiredReactNode——