shadcn.io is not affiliated with official shadcn/ui
Empty State examples · Standard
Empty with Multiple Paragraphs Empty State for React
An empty calendar whose description is split into two paragraphs.
An empty calendar whose description has two parts: there are no events in the next 7 days, then a blank line, then a nudge to create one. The two sentences share one EmptyDescription, separated by line breaks. Use it when the message has a fact and a suggestion that read better apart.
Preview
Installation
FAQ
How are the two paragraphs separated?
One EmptyDescription contains both sentences, with two br elements between them. The first says there are no events for the next 7 days. The second says to create a new event.
What icon is on the calendar empty state?
CalendarIcon in EmptyMedia with variant="icon". The title is "No upcoming events".
How much space is between the sentences?
Two br elements, so there is a blank line between them. The description stays one element.
Is Create a new event a button?
No. It is the second sentence of the description. There is no EmptyContent and no Button in this file.
Related
- Empty with Long Description Empty StateAn empty product list with a package icon
- Empty with Description Empty StateAn empty state with an inbox icon, a
- Empty Table Empty StateAn empty table state with a table icon
- Calendar with RangeA two-month calendar for selecting a
- Standard CardA basic card with a title, a description
- Info with Title AlertAn info alert with only a title, for a