# SbEmptyState Displays a placeholder when there is no content to show, such as empty lists, search results with no matches, or first-time user experiences. Provides a visual cue with optional icon, title, description, and action buttons. ## Parameters | Parameter | Type | Default | Description | |-----------|------|---------|-------------| | IconText | string? | "📭" | Icon text (emoji or symbol) shown when Icon is not provided | | Title | string? | "No items found" | Main heading text | | Description | string? | null | Secondary descriptive text | | Class | string? | null | Additional CSS classes | ## Templates / Slots | Slot | Type | Description | |------|------|-------------| | Icon | RenderFragment? | Custom icon content (takes precedence over IconText) | | ChildContent | RenderFragment? | Additional content below the description | | Actions | RenderFragment? | Action buttons (e.g., "Create New", "Try Again") | ### Template Usage #### With Custom Icon ```razor ``` #### With Actions ```razor Create Project ``` #### With Custom Content ```razor Try adjusting your search terms or filters. ``` ## CSS Classes - `sb-empty-state` - Base class - `sb-empty-state__icon` - Icon container - `sb-empty-state__icon-text` - Icon text element - `sb-empty-state__title` - Title heading - `sb-empty-state__description` - Description paragraph - `sb-empty-state__content` - Custom content wrapper - `sb-empty-state__actions` - Actions container ## Examples ### Basic Empty State ```razor ``` ### With Custom Title and Description ```razor ``` ### With Custom Icon Text ```razor ``` ### With Icon Component ```razor Start Shopping ``` ### First-Time User Experience ```razor Create Your First Project Learn More ``` ### Error State ```razor Try Again ``` ### Search No Results ```razor Suggestions: Check your spelling Try more general terms Try different keywords Clear Search ``` ### In a Data Grid ```razor ```
Try adjusting your search terms or filters.
Suggestions: