Extract date rendering into per-feature Date components
This commit is contained in:
1 parent
d95bf0dcbe
commit
455b603299
16 files changed
+168
-71
No files matched your search
@@ -0,0 +1,18 @@
|
||||
using Microsoft.AspNetCore.Components;
|
||||
|
||||
namespace Elternbeirat.Web.Features.Posts;
|
||||
|
||||
/// <summary>
|
||||
/// Renders a post's publication day as a <c><time></c> element, in both a
|
||||
/// machine-readable and a visitor-facing form. The two formats come from
|
||||
/// <see cref="PostDateFormat"/>.
|
||||
/// </summary>
|
||||
public partial class PostDate
|
||||
{
|
||||
/// <summary>
|
||||
/// The post's publication day.
|
||||
/// </summary>
|
||||
[Parameter]
|
||||
[EditorRequired]
|
||||
public DateOnly Value { get; set; }
|
||||
}
|
||||
Reference in new issue
Block a user