-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(components): introduce Radio Group component (#113)
* Add Radio basis * Add LumexRadioGroup * Build out Radio and RadioGroup And add styles * Add styles and align with Blazor Radio control * Clean up functionality - Use appropriate base classes - Improve link between Context-RadioGroup-Radio * FIx circular reference/infinite loop * Add test and docs * Remove errant bracket * More tests * Add more RadioGroup tests Fix missing name attribute too * Update Description.razor * Fix styles * Add support for Orientation and fix rendering Also build out more of the docs * Code organization to fit within convention And add more code comments and documentation * Updated documentation * Add custom style example to Radio * Remove duplicate file declaration * Fix build failure after merge * Update NuGet non-breaking packages Fixes vulnerability in System.Text.Json 8.0.0 * Fix issue preventing proper selection * Documentation updates * Fix failing tests * Add docs footer * Add more test coverage * Update CustomStyles.razor * PR comments and test updates * docs: update navigation * nits * docs: simplified examples * docs: add an example showcasing 2-way data binding * chore: shorten the introduction in the README * docs(footer): cleanup --------- Co-authored-by: desmondinho <[email protected]>
- Loading branch information
1 parent
c1f620b
commit eb21c1c
Showing
51 changed files
with
1,666 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
root = true | ||
|
||
# C# files | ||
[*.cs] | ||
[*.{cs,cshtml,razor}] | ||
|
||
#### Core EditorConfig Options #### | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,27 @@ | ||
@namespace LumexUI.Docs.Client.Components | ||
|
||
<footer class="mt-12 text-sm leading-6"> | ||
<div class="pt-10 pb-28 border-t border-divider"> | ||
<p>.</p> | ||
<div class="pt-10 pb-20 border-t border-divider flex flex-col justify-center items-center gap-1"> | ||
<p class="text-default-500"> | ||
© @(DateTimeOffset.UtcNow.ToString("yyyy")) LumexUI. All rights reserved. | ||
</p> | ||
|
||
<div class="flex items-center gap-1"> | ||
<LumexLink Href="https://github.com/LumexUI/lumexui" | ||
External="@true" | ||
Class="p-1 text-default-600"> | ||
<LumexIcon Icon="@Icons.Brands.GitHub" | ||
viewBox="0 0 24 24" /> | ||
<span class="sr-only">GitHub</span> | ||
</LumexLink> | ||
|
||
<LumexLink Href="https://discord.gg/jjgMz3apcb" | ||
External="@true" | ||
Class="p-1 text-default-600"> | ||
<LumexIcon Icon="@Icons.Brands.Discord" | ||
viewBox="0 0 24 24" /> | ||
<span class="sr-only">Discord</span> | ||
</LumexLink> | ||
</div> | ||
</div> | ||
</footer> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
docs/LumexUI.Docs.Client/Pages/Components/RadioGroup/Examples/Colors.razor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<LumexRadioGroup TValue="string"> | ||
<LumexRadio Color="@ThemeColor.Default" Value="@("default")">Default</LumexRadio> | ||
<LumexRadio Color="@ThemeColor.Primary" Value="@("primary")">Primary</LumexRadio> | ||
<LumexRadio Color="@ThemeColor.Secondary" Value="@("secondary")">Secondary</LumexRadio> | ||
<LumexRadio Color="@ThemeColor.Success" Value="@("success")">Success</LumexRadio> | ||
<LumexRadio Color="@ThemeColor.Warning" Value="@("warning")">Warning</LumexRadio> | ||
<LumexRadio Color="@ThemeColor.Danger" Value="@("danger")">Danger</LumexRadio> | ||
<LumexRadio Color="@ThemeColor.Info" Value="@("info")">Info</LumexRadio> | ||
</LumexRadioGroup> |
69 changes: 69 additions & 0 deletions
69
docs/LumexUI.Docs.Client/Pages/Components/RadioGroup/Examples/CustomStyles.razor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
<LumexRadioGroup Label="Choose your preferred meal" | ||
Classes="@_groupSlots" | ||
RadioClasses="@_radioClasses" | ||
@bind-Value="@_chosenFood"> | ||
<LumexRadio Value="@("Kebab")"> | ||
<div class="flex items-center gap-4"> | ||
<LumexIcon Icon="@Icons.Rounded.KebabDining" | ||
Size="@new("32")" /> | ||
<div> | ||
<div class="font-semibold">Chicken Kebab</div> | ||
<p class="text-sm text-primary">$11.99</p> | ||
</div> | ||
</div> | ||
</LumexRadio> | ||
|
||
<LumexRadio Value="@("Ramen")"> | ||
<div class="flex items-center gap-4"> | ||
<LumexIcon Icon="@Icons.Rounded.RamenDining" | ||
Size="@new("32")" /> | ||
<div> | ||
<div class="font-semibold">Ramen Bowl</div> | ||
<p class="text-sm text-primary">$12.99</p> | ||
</div> | ||
</div> | ||
</LumexRadio> | ||
|
||
<LumexRadio Value="@("Pizza")"> | ||
<div class="flex items-center gap-4"> | ||
<LumexIcon Icon="@Icons.Rounded.LocalPizza" | ||
Size="@new("32")" /> | ||
<div> | ||
<div class="font-semibold">Pizza</div> | ||
<p class="text-sm text-primary">$5.99</p> | ||
</div> | ||
</div> | ||
</LumexRadio> | ||
|
||
<LumexRadio Value="@("Nothing")"> | ||
<div class="flex items-center gap-4"> | ||
<LumexIcon Icon="@Icons.Rounded.NoFood" | ||
Size="@new("32")" /> | ||
<div> | ||
<div class="font-semibold">No Food</div> | ||
<p class="text-sm text-primary">No Cost</p> | ||
</div> | ||
</div> | ||
</LumexRadio> | ||
</LumexRadioGroup> | ||
|
||
@code | ||
{ | ||
private string? _chosenFood; | ||
|
||
private RadioGroupSlots _groupSlots = new() | ||
{ | ||
Label = "text-neutral-700 font-medium" | ||
}; | ||
|
||
private RadioSlots _radioClasses = new() | ||
{ | ||
Root = ElementClass.Empty() | ||
.Add("inline-flex m-0 bg-surface1 hover:bg-surface2 items-center justify-between") | ||
.Add("flex-row-reverse max-w-[300px] rounded-lg gap-4 p-4 border-2 border-default-200") | ||
.Add("data-[selected=true]:border-primary") | ||
.Add("data-[selected=true]:bg-primary-100/25") | ||
.Add("transition-colors") | ||
.ToString() | ||
}; | ||
} |
16 changes: 16 additions & 0 deletions
16
docs/LumexUI.Docs.Client/Pages/Components/RadioGroup/Examples/Description.razor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<LumexRadioGroup Label="Choose the Oscar winner" | ||
Description="@CalculatedDescription" | ||
@bind-Value="@_selectedActor"> | ||
<LumexRadio Value="@("Leonardo DiCaprio")">Leonardo DiCaprio</LumexRadio> | ||
<LumexRadio Value="@("Denzel Washington")">Denzel Washington</LumexRadio> | ||
<LumexRadio Value="@("Brad Pitt")">Brad Pitt</LumexRadio> | ||
<LumexRadio Value="@("Joaquin Phoenix")">Joaquin Phoenix</LumexRadio> | ||
<LumexRadio Value="@("Christian Bale")">Christian Bale</LumexRadio> | ||
</LumexRadioGroup> | ||
|
||
@code | ||
{ | ||
private string? _selectedActor; | ||
|
||
private string CalculatedDescription => $"You chose {_selectedActor ?? "nobody"} to win the Oscar"; | ||
} |
7 changes: 7 additions & 0 deletions
7
docs/LumexUI.Docs.Client/Pages/Components/RadioGroup/Examples/Disabled.razor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<LumexRadioGroup TValue="string" Disabled="@true"> | ||
<LumexRadio Value="@("leo")">Leonardo DiCaprio</LumexRadio> | ||
<LumexRadio Value="@("denzel")">Denzel Washington</LumexRadio> | ||
<LumexRadio Value="@("brad")">Brad Pitt</LumexRadio> | ||
<LumexRadio Value="@("joaquin")">Joaquin Phoenix</LumexRadio> | ||
<LumexRadio Value="@("christian")">Christian Bale</LumexRadio> | ||
</LumexRadioGroup> |
7 changes: 7 additions & 0 deletions
7
docs/LumexUI.Docs.Client/Pages/Components/RadioGroup/Examples/Label.razor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<LumexRadioGroup TValue="string" Label="Choose the Oscar winner"> | ||
<LumexRadio Value="@("leo")">Leonardo DiCaprio</LumexRadio> | ||
<LumexRadio Value="@("denzel")">Denzel Washington</LumexRadio> | ||
<LumexRadio Value="@("brad")">Brad Pitt</LumexRadio> | ||
<LumexRadio Value="@("joaquin")">Joaquin Phoenix</LumexRadio> | ||
<LumexRadio Value="@("christian")">Christian Bale</LumexRadio> | ||
</LumexRadioGroup> |
14 changes: 14 additions & 0 deletions
14
docs/LumexUI.Docs.Client/Pages/Components/RadioGroup/Examples/OptionDescriptions.razor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<LumexRadioGroup TValue="string" Label="Choose Preferred Accommodations"> | ||
<LumexRadio Description="The best of the best, the lap of luxury." Value="@("first")"> | ||
First Class | ||
</LumexRadio> | ||
<LumexRadio Description="Almost First Class, but not quite." Value="@("second")"> | ||
Second Class | ||
</LumexRadio> | ||
<LumexRadio Description="You'll feel lucky to have a bed." Value="@("third")"> | ||
Third Class | ||
</LumexRadio> | ||
<LumexRadio Description="For the full stowaway experience." Value="@("steerage")"> | ||
Steerage | ||
</LumexRadio> | ||
</LumexRadioGroup> |
7 changes: 7 additions & 0 deletions
7
docs/LumexUI.Docs.Client/Pages/Components/RadioGroup/Examples/ReadOnly.razor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<LumexRadioGroup ReadOnly="@true" Value="@("leo")"> | ||
<LumexRadio Value="@("leo")">Leonardo DiCaprio</LumexRadio> | ||
<LumexRadio Value="@("denzel")">Denzel Washington</LumexRadio> | ||
<LumexRadio Value="@("brad")">Brad Pitt</LumexRadio> | ||
<LumexRadio Value="@("joaquin")">Joaquin Phoenix</LumexRadio> | ||
<LumexRadio Value="@("christian")">Christian Bale</LumexRadio> | ||
</LumexRadioGroup> |
5 changes: 5 additions & 0 deletions
5
docs/LumexUI.Docs.Client/Pages/Components/RadioGroup/Examples/Sizes.razor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<LumexRadioGroup TValue="string"> | ||
<LumexRadio Size="@Size.Small" Value="@("sm")">Small</LumexRadio> | ||
<LumexRadio Size="@Size.Medium" Value="@("md")">Medium</LumexRadio> | ||
<LumexRadio Size="@Size.Large" Value="@("lg")">Large</LumexRadio> | ||
</LumexRadioGroup> |
37 changes: 37 additions & 0 deletions
37
docs/LumexUI.Docs.Client/Pages/Components/RadioGroup/Examples/TwoWayDataBinding.razor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<div class="flex flex-col gap-2"> | ||
<LumexRadioGroup @bind-Value="@_valueOne"> | ||
<LumexRadio Value="@("leo")">Leonardo DiCaprio</LumexRadio> | ||
<LumexRadio Value="@("denzel")">Denzel Washington</LumexRadio> | ||
<LumexRadio Value="@("brad")">Brad Pitt</LumexRadio> | ||
<LumexRadio Value="@("joaquin")">Joaquin Phoenix</LumexRadio> | ||
<LumexRadio Value="@("christian")">Christian Bale</LumexRadio> | ||
</LumexRadioGroup> | ||
<p class="text-sm text-default-500"> | ||
Selected: @_valueOne | ||
</p> | ||
</div> | ||
|
||
<div class="flex flex-col gap-2"> | ||
<LumexRadioGroup TValue="string" | ||
Value="@_valueTwo" | ||
ValueChanged="@OnValueChanged"> | ||
<LumexRadio Value="@("leo")">Leonardo DiCaprio</LumexRadio> | ||
<LumexRadio Value="@("denzel")">Denzel Washington</LumexRadio> | ||
<LumexRadio Value="@("brad")">Brad Pitt</LumexRadio> | ||
<LumexRadio Value="@("joaquin")">Joaquin Phoenix</LumexRadio> | ||
<LumexRadio Value="@("christian")">Christian Bale</LumexRadio> | ||
</LumexRadioGroup> | ||
<p class="text-sm text-default-500"> | ||
Selected: @_valueTwo | ||
</p> | ||
</div> | ||
|
||
@code { | ||
private string? _valueOne; | ||
private string? _valueTwo; | ||
|
||
private void OnValueChanged(string value) | ||
{ | ||
_valueTwo = value; | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
docs/LumexUI.Docs.Client/Pages/Components/RadioGroup/Examples/Usage.razor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<LumexRadioGroup TValue="string"> | ||
<LumexRadio Value="@("leo")">Leonardo DiCaprio</LumexRadio> | ||
<LumexRadio Value="@("denzel")">Denzel Washington</LumexRadio> | ||
<LumexRadio Value="@("brad")">Brad Pitt</LumexRadio> | ||
<LumexRadio Value="@("joaquin")">Joaquin Phoenix</LumexRadio> | ||
<LumexRadio Value="@("christian")">Christian Bale</LumexRadio> | ||
</LumexRadioGroup> |
6 changes: 6 additions & 0 deletions
6
docs/LumexUI.Docs.Client/Pages/Components/RadioGroup/Examples/_Orientation.razor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<LumexRadioGroup TValue="string" Orientation="@Orientation.Horizontal"> | ||
<LumexRadio Value="@("first")">First Class</LumexRadio> | ||
<LumexRadio Value="@("second")">Second Class</LumexRadio> | ||
<LumexRadio Value="@("third")">Third Class</LumexRadio> | ||
<LumexRadio Value="@("steerage")">Steerage</LumexRadio> | ||
</LumexRadioGroup> |
5 changes: 5 additions & 0 deletions
5
docs/LumexUI.Docs.Client/Pages/Components/RadioGroup/PreviewCodes/Colors.razor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
@rendermode InteractiveWebAssembly | ||
|
||
<PreviewCode Code="@new(name: null, snippet: "RadioGroup.Code.Colors")"> | ||
<LumexUI.Docs.Client.Pages.Components.RadioGroup.Examples.Colors /> | ||
</PreviewCode> |
5 changes: 5 additions & 0 deletions
5
docs/LumexUI.Docs.Client/Pages/Components/RadioGroup/PreviewCodes/CustomStyles.razor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
@rendermode InteractiveWebAssembly | ||
|
||
<PreviewCode Code="@new(name: null, snippet: "RadioGroup.Code.CustomStyles")"> | ||
<LumexUI.Docs.Client.Pages.Components.RadioGroup.Examples.CustomStyles /> | ||
</PreviewCode> |
5 changes: 5 additions & 0 deletions
5
docs/LumexUI.Docs.Client/Pages/Components/RadioGroup/PreviewCodes/Description.razor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
@rendermode InteractiveWebAssembly | ||
|
||
<PreviewCode Code="@new(name: null, snippet: "RadioGroup.Code.Description")"> | ||
<LumexUI.Docs.Client.Pages.Components.RadioGroup.Examples.Description /> | ||
</PreviewCode> |
5 changes: 5 additions & 0 deletions
5
docs/LumexUI.Docs.Client/Pages/Components/RadioGroup/PreviewCodes/Disabled.razor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
@rendermode InteractiveWebAssembly | ||
|
||
<PreviewCode Code="@new(name: null, snippet: "RadioGroup.Code.Disabled")"> | ||
<LumexUI.Docs.Client.Pages.Components.RadioGroup.Examples.Disabled /> | ||
</PreviewCode> |
5 changes: 5 additions & 0 deletions
5
docs/LumexUI.Docs.Client/Pages/Components/RadioGroup/PreviewCodes/Label.razor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
@rendermode InteractiveWebAssembly | ||
|
||
<PreviewCode Code="@new(name: null, snippet: "RadioGroup.Code.Label")"> | ||
<LumexUI.Docs.Client.Pages.Components.RadioGroup.Examples.Label /> | ||
</PreviewCode> |
5 changes: 5 additions & 0 deletions
5
docs/LumexUI.Docs.Client/Pages/Components/RadioGroup/PreviewCodes/OptionDescriptions.razor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
@rendermode InteractiveWebAssembly | ||
|
||
<PreviewCode Code="@new(name: null, snippet: "RadioGroup.Code.OptionDescriptions")"> | ||
<LumexUI.Docs.Client.Pages.Components.RadioGroup.Examples.OptionDescriptions /> | ||
</PreviewCode> |
5 changes: 5 additions & 0 deletions
5
docs/LumexUI.Docs.Client/Pages/Components/RadioGroup/PreviewCodes/Orientation.razor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
@rendermode InteractiveWebAssembly | ||
|
||
<PreviewCode Code="@new(name: null, snippet: "RadioGroup.Code._Orientation")"> | ||
<LumexUI.Docs.Client.Pages.Components.RadioGroup.Examples._Orientation /> | ||
</PreviewCode> |
5 changes: 5 additions & 0 deletions
5
docs/LumexUI.Docs.Client/Pages/Components/RadioGroup/PreviewCodes/ReadOnly.razor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
@rendermode InteractiveWebAssembly | ||
|
||
<PreviewCode Code="@new(name: null, snippet: "RadioGroup.Code.ReadOnly")"> | ||
<LumexUI.Docs.Client.Pages.Components.RadioGroup.Examples.ReadOnly /> | ||
</PreviewCode> |
5 changes: 5 additions & 0 deletions
5
docs/LumexUI.Docs.Client/Pages/Components/RadioGroup/PreviewCodes/Sizes.razor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
@rendermode InteractiveWebAssembly | ||
|
||
<PreviewCode Code="@new(name: null, snippet: "RadioGroup.Code.Sizes")"> | ||
<LumexUI.Docs.Client.Pages.Components.RadioGroup.Examples.Sizes /> | ||
</PreviewCode> |
5 changes: 5 additions & 0 deletions
5
docs/LumexUI.Docs.Client/Pages/Components/RadioGroup/PreviewCodes/TwoWayDataBinding.razor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
@rendermode InteractiveWebAssembly | ||
|
||
<PreviewCode Code="@new(name: null, snippet: "RadioGroup.Code.TwoWayDataBinding")"> | ||
<LumexUI.Docs.Client.Pages.Components.RadioGroup.Examples.TwoWayDataBinding /> | ||
</PreviewCode> |
5 changes: 5 additions & 0 deletions
5
docs/LumexUI.Docs.Client/Pages/Components/RadioGroup/PreviewCodes/Usage.razor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
@rendermode InteractiveWebAssembly | ||
|
||
<PreviewCode Code="@new(name: null, snippet: "RadioGroup.Code.Usage")"> | ||
<LumexUI.Docs.Client.Pages.Components.RadioGroup.Examples.Usage /> | ||
</PreviewCode> |
Oops, something went wrong.