Skip to main content

DatePickerDay

Individual day cell component used within the DatePicker calendar grid. Handles selection state, today highlight, and disabled states.

Import​

import { DatePickerDay } from '@scaffald/ui';

Basic Usage​

Live Preview
<ThemeProvider initialTheme="light">
<Text>DatePickerDay renders an individual day cell within the DatePicker calendar grid. It handles selection, today highlighting, and disabled states. Use the higher-level DatePicker for most use cases.</Text>
</ThemeProvider>

Props​

See the TypeScript definitions for the complete props API.

Common Props​

All DatePickerDay components accept standard React Native View props.

Examples​

// Individual day cells (typically rendered by DatePickerBase)
<Row gap={4}>
<DatePickerDay day={14} />
<DatePickerDay day={15} selected />
<DatePickerDay day={16} today />
<DatePickerDay day={17} disabled />
</Row>

Accessibility​

  • Keyboard navigation support
  • Screen reader compatible
  • ARIA attributes included
  • Focus management

Design Tokens​

This component uses the following design tokens:

  • Colors: colors.{semantic}.{theme}.{variant}
  • Spacing: spacing.*
  • Typography: typography.*

See Design Tokens for more information.

Changelog​

See GitHub Releases for version history.