# SbInspectorSection A collapsible section within an SbInspectorPanel. Groups related properties together with an expandable/collapsible header. ## Parameters | Parameter | Type | Default | Description | |-----------|------|---------|-------------| | Title | string | "" | Section title | | DefaultExpanded | bool | true | Initial expanded state | | Class | string? | null | Additional CSS classes | ## Templates / Slots | Slot | Type | Description | |------|------|-------------| | ChildContent | RenderFragment? | Section content | | Badge | RenderFragment? | Optional badge shown next to title | ## CSS Classes - `sb-inspector-section` - Base class - `sb-inspector-section--expanded` - Expanded state - `sb-inspector-section__header` - Clickable header - `sb-inspector-section__chevron` - Expand/collapse indicator - `sb-inspector-section__title` - Title text - `sb-inspector-section__badge` - Badge container - `sb-inspector-section__content` - Content area ## Examples ### Basic Section ```razor ``` ### Initially Collapsed ```razor ``` ### With Badge ```razor ``` ### Multiple Sections in Panel ```razor @if (hasEffects) { } ``` ### Typography Inspector ```razor Sans Serif Serif Monospace Light Regular Medium Bold ``` ### Dynamic Sections ```razor @foreach (var group in propertyGroups) { @foreach (var prop in group.Properties) { @RenderPropertyEditor(prop) } } ```