-
-
Notifications
You must be signed in to change notification settings - Fork 26
Expand file tree
/
Copy pathDocsSlotsSection.razor
More file actions
28 lines (25 loc) · 836 Bytes
/
DocsSlotsSection.razor
File metadata and controls
28 lines (25 loc) · 836 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
@namespace LumexUI.Docs.Client.Components
<DocsSection Title="@Title">
<p>
This component supports named slots that
allow you to apply custom CSS to specific parts of the component.
</p>
<ul>
@foreach( var slot in Slots )
{
<li>
<strong class="text-orange-500 dark:text-orange-400">@slot.Name:</strong> @slot.Description
</li>
}
</ul>
<p>
You can customize the component(s) by passing
any Tailwind CSS classes to the following component parameters:
</p>
@ChildContent
</DocsSection>
@code {
[Parameter] public RenderFragment? ChildContent { get; set; }
[Parameter] public string Title { get; set; } = "Custom Styles";
[Parameter, EditorRequired] public Slot[] Slots { get; set; } = default!;
}