Set the Placeholder in Blazor DatePicker Component

17 Aug 20211 minute to read

The following example demonstrates how to set Placeholder in the DatePicker component.

Using Placeholder, you can display a short hint in the input element.

@using Syncfusion.Blazor.Calendars

<SfDatePicker TValue="DateTime?" Placeholder="Select a date"></SfDatePicker>

The output will be as follows.

Blazor DatePicker displays Hint Element