Search results

Set the Placeholder in Blazor DatePicker component

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.

datepicker