light mode
No messages
Anything sent to this address will show up here.
Nothing to see
dark mode
No messages
Anything sent to this address will show up here.
Nothing to see
Empty
the element:
<div>onemptyits own props:
icon,title,description,element, children as the actionssize:
example:
empty
From the Display section of @aweftjs/ui.
Example
Every state, type and size, rendered in light and dark from recipes/ui/examples/empty.example.tsx:
// Empty: everything it takes, and the same thing with only a title.
import { Button, Empty, Icon, h } from '@aweftjs/ui';
import { ids } from '../example.ts';
import type { ExampleComponent } from '../example.ts';
export const name = 'Empty';
export const order = 63;
export const Example: ExampleComponent = (props) => {
const at = ids(props.mode);
return (
<div theme="column">
<Empty
icon={<Icon name="lucide:inbox" />}
title="No messages"
description="Anything sent to this address will show up here."
id={at('empty')}
>
<Button label="Refresh" type="quiet" size="sm" id={at('empty-refresh')} />
</Empty>
<Empty title="Nothing to see" id={at('empty-bare')} />
</div>
);
};