-
-
Notifications
You must be signed in to change notification settings - Fork 28
feat(components): add Textarea component #313
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
76d9294
refactor(input): extract inner element render into virtual hook
desmondinho 010dea0
feat(textarea): add LumexTextarea component
desmondinho a7df08f
test(textarea): cover rendering, parameters, and debounce behavior
desmondinho 105ba4b
docs(textarea): add page, examples, and navigation entries
desmondinho 726bb71
fix(textarea): bind value via attribute instead of element content
desmondinho d49cb54
refactor(textarea): render own DOM matching HeroUI layout
desmondinho e089f31
refactor(input): drop unused RenderInputElement hook
desmondinho 26e0de3
style(textarea): add missing label-placement compound rules
desmondinho 13287cf
style(textarea): gate outside-label absolute positioning on non-multi…
desmondinho ba098fc
style(textarea): suppress floating-label scale and translate for insi…
desmondinho 6471408
style(textarea): restore floating-label scale on inside label
desmondinho f4b7dfe
docs(textarea): drop mt-2 hack from start/end content icons
desmondinho 3b17a13
style(textarea): hide scrollbar on the textarea
desmondinho 9d5f71b
style(textarea): apply size-based label text-size for both placements
desmondinho 273188b
style(input): restore shrink-0 on label baseline
desmondinho eb62ce7
feat(textarea): expose data-autosize-disabled to allow manual resize
desmondinho d479a50
style(textarea): always apply resize-none on the textarea
desmondinho 8c8ec3a
docs(textarea): tighten Autosize and StartEndContent example layouts
desmondinho 406581c
chore(*): coderabbit suggestions
desmondinho File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
16 changes: 16 additions & 0 deletions
16
docs/LumexUI.Docs.Client/Pages/Components/Textarea/Examples/Autosize.razor
This file contains hidden or 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 @@ | ||
| <div class="w-full flex flex-col gap-6"> | ||
| <div class="w-full flex flex-wrap gap-4 md:flex-nowrap"> | ||
| <LumexTextarea Label="Default (3-8 rows)" | ||
| Placeholder="Type until the textarea grows..." /> | ||
|
|
||
| <LumexTextarea Label="Custom range" | ||
| MinRows="2" | ||
| MaxRows="6" | ||
| Placeholder="Grows between 2 and 6 rows..." /> | ||
|
|
||
| <LumexTextarea Label="Autosize disabled" | ||
| DisableAutosize="@true" | ||
| MinRows="4" | ||
| Placeholder="Locked at 4 rows; never grows." /> | ||
| </div> | ||
| </div> |
29 changes: 29 additions & 0 deletions
29
docs/LumexUI.Docs.Client/Pages/Components/Textarea/Examples/ClearButton.razor
This file contains hidden or 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,29 @@ | ||
| <div class="w-full"> | ||
| <LumexTextarea Clearable="@true" | ||
| Label="Bio" | ||
| Placeholder="Tell us about yourself..." | ||
| Value="@_value" | ||
| Variant="@InputVariant.Outlined" | ||
| OnCleared="@Notify" | ||
| Class="max-w-xs" /> | ||
| </div> | ||
| <p class="text-sm text-default-500">@_text</p> | ||
|
|
||
| @code { | ||
| private string? _text; | ||
| private string? _value = "Loves Blazor and ships UIs in record time."; | ||
|
|
||
| private void Notify() | ||
| { | ||
| _value = null; | ||
|
|
||
| if( string.IsNullOrEmpty( _text ) ) | ||
| { | ||
| _text = "Input is cleared!"; | ||
| } | ||
| else | ||
| { | ||
| _text += " ..and again.."; | ||
| } | ||
| } | ||
| } |
24 changes: 24 additions & 0 deletions
24
docs/LumexUI.Docs.Client/Pages/Components/Textarea/Examples/Colors.razor
This file contains hidden or 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,24 @@ | ||
| <div class="w-full grid grid-cols-1 gap-4 md:grid-cols-2"> | ||
| @foreach( var color in _colors ) | ||
| { | ||
| <div> | ||
| <LumexTextarea Color="@color" | ||
| Label="Bio" | ||
| Placeholder="Tell us about yourself..." | ||
| Value="Loves Blazor and ships UIs in record time." /> | ||
| <small class="text-default-400 mt-1">@color</small> | ||
| </div> | ||
| } | ||
| </div> | ||
|
|
||
| @code { | ||
| private ThemeColor[] _colors = [ | ||
| ThemeColor.Default, | ||
| ThemeColor.Primary, | ||
| ThemeColor.Secondary, | ||
| ThemeColor.Success, | ||
| ThemeColor.Warning, | ||
| ThemeColor.Danger, | ||
| ThemeColor.Info | ||
| ]; | ||
| } |
32 changes: 32 additions & 0 deletions
32
docs/LumexUI.Docs.Client/Pages/Components/Textarea/Examples/CustomStyles.razor
This file contains hidden or 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,32 @@ | ||
| @using LumexUI.Shared.Icons | ||
|
|
||
| <LumexTextarea Label="Note" | ||
| Placeholder="Type a note..." | ||
| Radius="@Radius.Large" | ||
| Clearable="@true" | ||
| Classes="@_classes"> | ||
| <StartContent> | ||
| <SearchIcon Size="18" class="text-secondary-400 shrink-0" /> | ||
| </StartContent> | ||
| </LumexTextarea> | ||
|
|
||
| @code { | ||
| private InputFieldSlots _classes = new() | ||
| { | ||
| Label = "text-default-700", | ||
| InnerWrapper = "bg-transparent", | ||
| InputWrapper = ElementClass.Empty() | ||
| .Add( "shadow-xl" ) | ||
| .Add( "bg-default-200/50" ) | ||
| .Add( "backdrop-blur-xl" ) | ||
| .Add( "backdrop-saturate-200" ) | ||
| .Add( "hover:bg-default-200/70" ) | ||
| .Add( "group-data-[focus=true]:bg-default-200/85" ) | ||
| .ToString(), | ||
| Input = ElementClass.Empty() | ||
| .Add( "bg-transparent" ) | ||
| .Add( "text-default-900" ) | ||
| .Add( "placeholder:text-default-500" ) | ||
| .ToString() | ||
| }; | ||
| } |
17 changes: 17 additions & 0 deletions
17
docs/LumexUI.Docs.Client/Pages/Components/Textarea/Examples/DebounceDelay.razor
This file contains hidden or 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,17 @@ | ||
| <div class="w-full flex flex-col gap-2"> | ||
| <LumexTextarea DebounceDelay="250" | ||
| Behavior="@InputBehavior.OnInput" | ||
| Label="Bio" | ||
| Placeholder="Tell us about yourself..." | ||
| Clearable="@true" | ||
| Class="max-w-xs" | ||
| @bind-Value="@_value" /> | ||
|
|
||
| <p class="text-sm text-default-500"> | ||
| Value: @_value | ||
| </p> | ||
| </div> | ||
|
|
||
| @code { | ||
| private string? _value; | ||
| } |
4 changes: 4 additions & 0 deletions
4
docs/LumexUI.Docs.Client/Pages/Components/Textarea/Examples/Description.razor
This file contains hidden or 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,4 @@ | ||
| <LumexTextarea Label="Bio" | ||
| Placeholder="Tell us about yourself..." | ||
| Description="A short paragraph that will appear on your public profile." | ||
| Class="max-w-xs" /> |
4 changes: 4 additions & 0 deletions
4
docs/LumexUI.Docs.Client/Pages/Components/Textarea/Examples/Disabled.razor
This file contains hidden or 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,4 @@ | ||
| <LumexTextarea Disabled="@true" | ||
| Label="Bio" | ||
| Placeholder="Tell us about yourself..." | ||
| Class="max-w-xs" /> |
62 changes: 62 additions & 0 deletions
62
docs/LumexUI.Docs.Client/Pages/Components/Textarea/Examples/ErrorMessage.razor
This file contains hidden or 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,62 @@ | ||
| @using FluentValidation | ||
| @using FluentValidation.Results | ||
|
|
||
| <LumexTextarea Variant="@InputVariant.Underlined" | ||
| Label="Bio" | ||
| Required="@true" | ||
| ErrorMessage="@_userValidator.BioErrorMessage" | ||
| Invalid="@(!string.IsNullOrEmpty(_userValidator.BioErrorMessage))" | ||
| Color="@(!string.IsNullOrEmpty(_userValidator.BioErrorMessage) ? ThemeColor.Danger : ThemeColor.Success)" | ||
| Value="@_user.Bio" | ||
| ValueChanged="@OnBioChange" | ||
| Class="max-w-xs" /> | ||
|
|
||
| @code { | ||
| private User _user = new(); | ||
| private UserValidator _userValidator = new(); | ||
|
|
||
| protected override void OnInitialized() | ||
| { | ||
| _user.Bio = "Hi"; | ||
| Validate(); | ||
| } | ||
|
|
||
| private void OnBioChange( string value ) | ||
| { | ||
| _user.Bio = value; | ||
| Validate(); | ||
| } | ||
|
|
||
| private void Validate() | ||
| { | ||
| var result = _userValidator.Validate( _user ); | ||
| if( !result.IsValid ) | ||
| { | ||
| _userValidator.BioErrorMessage = result.Errors | ||
| .Where( failure => failure.PropertyName == nameof( User.Bio ) ) | ||
| .Select( failure => failure.ErrorMessage ) | ||
| .FirstOrDefault(); | ||
| } | ||
| else | ||
| { | ||
| _userValidator.BioErrorMessage = null; | ||
| } | ||
| } | ||
|
|
||
| public class User | ||
| { | ||
| public string? Bio { get; set; } | ||
| } | ||
|
|
||
| public class UserValidator : AbstractValidator<User> | ||
| { | ||
| public string? BioErrorMessage { get; set; } | ||
|
|
||
| public UserValidator() | ||
| { | ||
| RuleFor( user => user.Bio ) | ||
| .NotEmpty().WithMessage( "Bio is required" ) | ||
| .MinimumLength( 10 ).WithMessage( "Please write at least 10 characters" ); | ||
| } | ||
| } | ||
| } | ||
19 changes: 19 additions & 0 deletions
19
docs/LumexUI.Docs.Client/Pages/Components/Textarea/Examples/LabelPlacements.razor
This file contains hidden or 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,19 @@ | ||
| <div class="w-full grid grid-cols-1 gap-4"> | ||
| @foreach( var placement in _labelPlacements ) | ||
| { | ||
| <div> | ||
| <div class="w-full flex flex-wrap gap-4 md:flex-nowrap"> | ||
| <LumexTextarea LabelPlacement="@placement" Label="Bio" /> | ||
| <LumexTextarea LabelPlacement="@placement" Label="Bio" Placeholder="Tell us about yourself..." /> | ||
| </div> | ||
| <small class="text-default-400 mt-1">@placement</small> | ||
| </div> | ||
| } | ||
| </div> | ||
|
|
||
| @code { | ||
| private LabelPlacement[] _labelPlacements = [ | ||
| LabelPlacement.Inside, | ||
| LabelPlacement.Outside | ||
| ]; | ||
| } |
4 changes: 4 additions & 0 deletions
4
docs/LumexUI.Docs.Client/Pages/Components/Textarea/Examples/ReadOnly.razor
This file contains hidden or 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,4 @@ | ||
| <LumexTextarea ReadOnly="@true" | ||
| Label="Bio" | ||
| Value="Loves Blazor and ships UIs in record time." | ||
| Class="max-w-xs" /> |
4 changes: 4 additions & 0 deletions
4
docs/LumexUI.Docs.Client/Pages/Components/Textarea/Examples/Required.razor
This file contains hidden or 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,4 @@ | ||
| <LumexTextarea Required="@true" | ||
| Label="Bio" | ||
| Placeholder="Tell us about yourself..." | ||
| Class="max-w-xs" /> |
20 changes: 20 additions & 0 deletions
20
docs/LumexUI.Docs.Client/Pages/Components/Textarea/Examples/Sizes.razor
This file contains hidden or 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,20 @@ | ||
| <div class="w-full grid grid-cols-1 gap-4"> | ||
| @foreach( var size in _sizes ) | ||
| { | ||
| <div> | ||
| <div class="w-full flex flex-wrap gap-4 md:flex-nowrap"> | ||
| <LumexTextarea Size="@size" Label="Bio" /> | ||
| <LumexTextarea Size="@size" Label="Bio" Placeholder="Tell us about yourself..." /> | ||
| </div> | ||
| <small class="text-default-400 mt-1">@size</small> | ||
| </div> | ||
| } | ||
| </div> | ||
|
|
||
| @code { | ||
| private Size[] _sizes = [ | ||
| Size.Small, | ||
| Size.Medium, | ||
| Size.Large | ||
| ]; | ||
| } |
32 changes: 32 additions & 0 deletions
32
docs/LumexUI.Docs.Client/Pages/Components/Textarea/Examples/StartEndContent.razor
This file contains hidden or 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,32 @@ | ||
| @using LumexUI.Shared.Icons | ||
|
|
||
| <div class="w-full grid gap-4"> | ||
| <div class="w-full flex flex-wrap gap-4 md:flex-nowrap"> | ||
| <LumexTextarea Label="Note" | ||
| Placeholder="Type a note..." | ||
| LabelPlacement="@LabelPlacement.Outside" | ||
| StartContent="@_pencilIcon" /> | ||
|
|
||
| <LumexTextarea Label="Search" | ||
| Placeholder="Type to search..." | ||
| LabelPlacement="@LabelPlacement.Outside" | ||
| StartContent="@_searchIcon" /> | ||
| </div> | ||
|
|
||
| <div class="w-full flex flex-wrap gap-4 md:flex-nowrap"> | ||
| <LumexTextarea Label="Note" | ||
| Placeholder="Type a note..." | ||
| LabelPlacement="@LabelPlacement.Outside" | ||
| EndContent="@_pencilIcon" /> | ||
|
|
||
| <LumexTextarea Label="Search" | ||
| Placeholder="Type to search..." | ||
| LabelPlacement="@LabelPlacement.Outside" | ||
| EndContent="@_searchIcon" /> | ||
| </div> | ||
| </div> | ||
|
|
||
| @code { | ||
| private RenderFragment _searchIcon = @<SearchIcon Size="20" class="text-default-400 shrink-0" />; | ||
| private RenderFragment _pencilIcon = @<MailIcon Size="20" class="text-default-400 shrink-0" />; | ||
| } |
32 changes: 32 additions & 0 deletions
32
docs/LumexUI.Docs.Client/Pages/Components/Textarea/Examples/TwoWayDataBinding.razor
This file contains hidden or 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,32 @@ | ||
| <div class="w-full flex flex-wrap gap-4 md:flex-nowrap"> | ||
| <div class="w-full flex flex-col gap-2"> | ||
| <LumexTextarea Label="Bio" | ||
| Placeholder="Tell us about yourself..." | ||
| Clearable="@true" | ||
| @bind-Value="@_valueOne" /> | ||
| <p class="text-sm text-default-500"> | ||
| Value: @_valueOne | ||
| </p> | ||
| </div> | ||
|
|
||
| <div class="w-full flex flex-col gap-2"> | ||
| <LumexTextarea Label="Bio" | ||
| Placeholder="Tell us about yourself..." | ||
| Clearable="@true" | ||
| Value="@_valueTwo" | ||
| ValueChanged="@OnValueChanged" /> | ||
| <p class="text-sm text-default-500"> | ||
| Value: @_valueTwo | ||
| </p> | ||
| </div> | ||
| </div> | ||
|
|
||
| @code { | ||
| private string? _valueOne; | ||
| private string? _valueTwo = "Loves Blazor."; | ||
|
|
||
| private void OnValueChanged( string value ) | ||
| { | ||
| _valueTwo = value; | ||
| } | ||
|
desmondinho marked this conversation as resolved.
|
||
| } | ||
4 changes: 4 additions & 0 deletions
4
docs/LumexUI.Docs.Client/Pages/Components/Textarea/Examples/Usage.razor
This file contains hidden or 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,4 @@ | ||
| <div class="w-full flex flex-wrap gap-4 md:flex-nowrap"> | ||
| <LumexTextarea Label="Bio" /> | ||
| <LumexTextarea Label="Bio" Placeholder="Tell us about yourself..." /> | ||
| </div> |
20 changes: 20 additions & 0 deletions
20
docs/LumexUI.Docs.Client/Pages/Components/Textarea/Examples/Variants.razor
This file contains hidden or 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,20 @@ | ||
| <div class="w-full grid grid-cols-1 gap-4"> | ||
| @foreach( var variant in _variants ) | ||
| { | ||
| <div> | ||
| <div class="w-full flex flex-wrap gap-4 md:flex-nowrap"> | ||
| <LumexTextarea Variant="@variant" Label="Bio" /> | ||
| <LumexTextarea Variant="@variant" Label="Bio" Placeholder="Tell us about yourself..." /> | ||
| </div> | ||
| <small class="text-default-400 mt-1">@variant</small> | ||
| </div> | ||
| } | ||
| </div> | ||
|
|
||
| @code { | ||
| private InputVariant[] _variants = [ | ||
| InputVariant.Flat, | ||
| InputVariant.Outlined, | ||
| InputVariant.Underlined | ||
| ]; | ||
| } |
18 changes: 18 additions & 0 deletions
18
docs/LumexUI.Docs.Client/Pages/Components/Textarea/Examples/_Radius.razor
This file contains hidden or 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,18 @@ | ||
| <div class="w-full grid grid-cols-1 gap-4 md:grid-cols-2"> | ||
| @foreach( var radius in _radiuses ) | ||
| { | ||
| <div> | ||
| <LumexTextarea Radius="@radius" Label="Radius" Placeholder="@radius.ToString()" /> | ||
| <small class="text-default-400 mt-1">@radius</small> | ||
| </div> | ||
| } | ||
| </div> | ||
|
|
||
| @code { | ||
| private Radius[] _radiuses = [ | ||
| Radius.None, | ||
| Radius.Small, | ||
| Radius.Medium, | ||
| Radius.Large | ||
| ]; | ||
| } |
5 changes: 5 additions & 0 deletions
5
docs/LumexUI.Docs.Client/Pages/Components/Textarea/PreviewCodes/Autosize.razor
This file contains hidden or 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: "Textarea.Code.Autosize")"> | ||
| <LumexUI.Docs.Client.Pages.Components.Textarea.Examples.Autosize /> | ||
| </PreviewCode> |
5 changes: 5 additions & 0 deletions
5
docs/LumexUI.Docs.Client/Pages/Components/Textarea/PreviewCodes/ClearButton.razor
This file contains hidden or 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: "Textarea.Code.ClearButton")"> | ||
| <LumexUI.Docs.Client.Pages.Components.Textarea.Examples.ClearButton /> | ||
| </PreviewCode> |
5 changes: 5 additions & 0 deletions
5
docs/LumexUI.Docs.Client/Pages/Components/Textarea/PreviewCodes/Colors.razor
This file contains hidden or 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: "Textarea.Code.Colors")"> | ||
| <LumexUI.Docs.Client.Pages.Components.Textarea.Examples.Colors /> | ||
| </PreviewCode> |
5 changes: 5 additions & 0 deletions
5
docs/LumexUI.Docs.Client/Pages/Components/Textarea/PreviewCodes/CustomStyles.razor
This file contains hidden or 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: "Textarea.Code.CustomStyles")"> | ||
| <LumexUI.Docs.Client.Pages.Components.Textarea.Examples.CustomStyles /> | ||
| </PreviewCode> |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.