-
-
Notifications
You must be signed in to change notification settings - Fork 26
Expand file tree
/
Copy pathDocsApiSection.razor
More file actions
35 lines (31 loc) · 1.25 KB
/
DocsApiSection.razor
File metadata and controls
35 lines (31 loc) · 1.25 KB
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
29
30
31
32
33
34
35
@namespace LumexUI.Docs.Client.Components
@inject NavigationManager NavigationManager
<DocsSection Title="API">
<p>
See the API references below for a complete guide to all the
parameters available for the components mentioned here.
</p>
<ul>
@foreach( var component in Components )
{
var componentPathSegment = component.Replace( "Lumex", "" ).SplitPascalCase().ToKebabCase();
<li>
<LumexChip Size="@Size.Small"
Radius="@Radius.Small"
Variant="@ChipVariant.Flat"
Class="not-prose bg-default-50 ring ring-default-900/10">
<LumexLink Href="@($"{NavigationManager.BaseUri}docs/api/{componentPathSegment}")"
Class="font-mono text-orange-600 dark:text-orange-400">
@($"<{component} />")
</LumexLink>
</LumexChip>
</li>
}
@* <span class="px-1 py-0.5 rounded-md ring ring-orange-200 bg-default-50">
@($"<{component} />")
</span> *@
</ul>
</DocsSection>
@code {
[Parameter, EditorRequired] public string[] Components { get; set; } = default!;
}