Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
docs: added initial documentation page
  • Loading branch information
Denny09310 committed Sep 15, 2025
commit b4e0ccd8c5285d55b240841c4962fe6aeee497ef
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<LumexUser Name="Dan">
<DescriptionContent>
<LumexLink External Href="https://github.com/desmondinho">
@@desmondinho
</LumexLink>
</DescriptionContent>
</LumexUser>
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
@rendermode InteractiveWebAssembly

<PreviewCode Code="@new(name: null, snippet: "User.Code.LinkDescription")">
<LumexUI.Docs.Client.Pages.Components.User.Examples.LinkDescription />
</PreviewCode>
17 changes: 12 additions & 5 deletions docs/LumexUI.Docs.Client/Pages/Components/User/User.razor
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@

<DocsSection Title="Usage">
<Usage />

<DocsSection Title="Link Description">
<LinkDescription />
</DocsSection>

</DocsSection>

<DocsSlotsSection Slots="@_slots">
Expand All @@ -24,16 +29,18 @@

private readonly Heading[] _headings = new Heading[]
{
new("Usage"),
new("Usage", [
new("Link Description")
]),
new("API")
};

private readonly Slot[] _slots = new Slot[]
{
new(nameof( UserSlots.Base ), ""),
new(nameof( UserSlots.Wrapper ), ""),
new(nameof( UserSlots.Name ), ""),
new(nameof( UserSlots.Description ), ""),
new(nameof( UserSlots.Base ), "The base slot of the user, it is the main container."),
new(nameof( UserSlots.Wrapper ), "The name and description wrapper."),
new(nameof( UserSlots.Name ), "The name of the user."),
new(nameof( UserSlots.Description ), "The description of the user."),
};

private readonly string[] _apiComponents = new string[]
Expand Down