All components

Date Picker

Choose a date within a permitted window.

Examples

Choose a date within a permitted window

React code
import { Label, DatePicker } from "@accelerate/react/components";

export function Example() {
  return (
    <>
      <Label htmlFor="due-date">Due date</Label>
      <DatePicker id="due-date" name="due" defaultValue="2026-12-05" min="2026-12-01" max="2026-12-31" />
    </>
  );
}
Angular code
import { Component } from "@angular/core";
import { AccLabel, AccDatePicker } from "@accelerate/angular/components";

@Component({
  selector: "app-example",
  imports: [
    AccLabel,
    AccDatePicker,
  ],
  template: `
    <label accLabel for="due-date">Due date</label>
    <input accDatePicker id="due-date" name="due" value="2026-12-05" min="2026-12-01" max="2026-12-31">
  `,
})
export class Example {}

Installation

Source preview. The expanded component catalog is ahead of the public npm releases. To run these examples in your own application, use packages built from the SDK source used for the previews or a release that includes the APIs below.

React
@accelerate/ui@0.4.0 and @accelerate/react@0.4.0
Angular
@accelerate/ui@0.4.0 and @accelerate/angular@0.2.0

Load @accelerate/ui/theme.css and put acc-theme on the app or the region using Accelerator components. See the framework setup guide for the theme and adapter conventions.

Usage

Native date control including min/max, validation, and form submission. Pair Calendar with Popover when a consistent month view is desired.

Import the React component DatePicker from @accelerate/react/components. For Angular, add AccDatePicker to the standalone component’s imports and use <input accDatePicker>.

Examples use these React parts: Label, DatePicker. The Angular examples show the corresponding directives and template hosts.

API reference

value / min / max
Use ISO dates. Native validation applies.
name
Includes the date in form submission.