Set the Placeholder in Blazor DatePicker Component
6 Aug 20261 minute to read
Using Placeholder, you can display a short hint in the input element. The default value of Placeholder is string.Empty. How the placeholder is rendered depends on the FloatLabelType property.
The following example demonstrates how to set Placeholder in the DatePicker component.
@using Syncfusion.Blazor.Calendars
<SfDatePicker TValue="DateTime?" Placeholder="Select a date"></SfDatePicker>