[dev-v5][NumberInput] Add FluentNumberInput component#4687
Merged
[dev-v5][NumberInput] Add FluentNumberInput component#4687
Conversation
…Max parameters for value constraints
…rs, and step functionality; add CSS for numeric input styling
…entNumber component
…ng for decimal precision
…t default max to positive infinity
…amples and culture settings
|
✅ All tests passed successfully Details on your Workflow / Core Tests page. |
…parator and improve documentation
Collaborator
|
@dvoituron I look at this again and it is working perfectly fine for me. Great work! :) |
…oving non-digit characters and add unit tests for validation
…ission and improve validation handling
…e types for long and float values
… documentation for nullable types
…, and parsing behavior with disabled, read-only, and clamped values
…ent behavior with double values, ensuring proper rounding for floating-point imprecision
…ts, improving readability and maintainability
MarvinKlein1508
suggested changes
Apr 15, 2026
vnbaaij
requested changes
Apr 15, 2026
Collaborator
vnbaaij
left a comment
There was a problem hiding this comment.
We should call this component FluentNumberInput to make clear it is an input and acts as a counterpart of the FluentTextInput
…m/microsoft/fluentui-blazor into users/dvoituron/dev-v5/number-poc
vnbaaij
approved these changes
Apr 15, 2026
MarvinKlein1508
approved these changes
Apr 15, 2026
Summary - Unit Tests Code CoverageSummary
CoverageMicrosoft.FluentUI.AspNetCore.Components - 99%
|
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
[dev-v5] FluentNumber
The FluentNumber component enables a user to enter and edit numeric values.
It supports both integer and decimal numbers, with configurable
Min,Max, andStepconstraints.Value can be one of the following Numeric Types:
byte,sbyte,short,ushort,int,uint,long,ulong,float,double,decimal.Use the
StepButtonsparameter to control the visibility of the up/down step buttons.It accepts a
NumberStepVisibilityvalue:Culture and Decimal Separator
Use the
Cultureparameter to control how numbers are formatted and parsed, including the decimal separator, group separator, and number of decimal digits. By default, the component uses theFluentNumberCultureInfoclass (dot.as decimal separator). You can pass anyCultureInfoinstance (e.g.fr,de,ja) to match the user's locale.peek_1.mp4
Unit Tests