-
Notifications
You must be signed in to change notification settings - Fork 458
[dev-v5] FluentTimePicker #4216
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
Conversation
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
|
✅ All tests passed successfully Details on your Workflow / Core Tests page. |
Summary - Unit Tests Code CoverageSummary
CoverageMicrosoft.FluentUI.AspNetCore.Components - 98.9%
|
vnbaaij
requested changes
Oct 6, 2025
...s/Demo/FluentUI.Demo.Client/Documentation/Components/DateTime/TimePicker/FluentTimePicker.md
Outdated
Show resolved
Hide resolved
...s/Demo/FluentUI.Demo.Client/Documentation/Components/DateTime/TimePicker/FluentTimePicker.md
Show resolved
Hide resolved
...s/Demo/FluentUI.Demo.Client/Documentation/Components/DateTime/TimePicker/FluentTimePicker.md
Outdated
Show resolved
Hide resolved
examples/Demo/FluentUI.Demo.Client/Documentation/Components/List/Combobox/FluentCombobox.md
Outdated
Show resolved
Hide resolved
examples/Demo/FluentUI.Demo.Client/Documentation/Components/List/Select/FluentSelect.md
Outdated
Show resolved
Hide resolved
Collaborator
Author
|
@vnbaaij I fixed your PR comments. And I added this note, because I think we will receive this question :-) |
vnbaaij
approved these changes
Oct 7, 2025
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] FluentTimePicker
FluentTimePicker offers a control that's optimized for selecting a time from a
drop-down list or using free-form input to select a predefined time.
If the user write an invalid time, the input field content will be deleted when the input field loses focus.
You can use the
Cultureparameter to display the time in different format patterns;and to set the time format displayed in the input field.
Default
The TimePicker allows users to select a time value:
<FluentTimePicker @bind-Value="@SelectedValue" />Culture
You can set the culture of the TimePicker to display the hours and minutes in different
formats. Use the
Cultureparameter to set the desired time format.We are using the
Culture.DateTimeFormat.ShortTimePatternproperty to display the time with the correct pattern (e.g.HH:mm).Example:
Culture="@(new CultureInfo("fr"))"will display the time in French (HH:mm).RenderStyle
The TimePicker can be rendered in different modes:
FluentUI,Native.The
FluentUIrendering style uses the Fluent UI styles and components.This mode provides a consistent look and feel with other Fluent UI components.
This mode provides all the features of the component.
The
nativerendering style uses the default browser styles.This mode is useful when you want to use a very simple TimePicker with a mobile device.
In this case, the mobile picker will be used. This could be useful to use the native Android or iOS date picker.
Value type
The FluentTimePicker component is a generic component, so you can use it with date types such as
DateTime?,DateTime,TimeOnly?orTimeOnly.Blazor will automatically infer the type based on the value you provide to the
Valueparameters.You can also explicitly set the type using the generic type parameter:
TValue(i.e.TValue="TimeOnly?").Unit Tests