RocketChat/Rocket.Chat

View on GitHub
packages/uikit-playground/src/Payload/actionBlock/input/datePicker.ts

Summary

Maintainability
A
0 mins
Test Coverage
import type { LayoutBlock } from '@rocket.chat/ui-kit';

export const inputWithDatePicker: readonly LayoutBlock[] = [
  {
    type: 'input',
    element: {
      type: 'datepicker',
      appId: 'app-id',
      blockId: 'block-id',
      actionId: 'action-id',
      initialDate: '1990-04-28',
      placeholder: {
        type: 'plain_text',
        text: 'Select a date',
        emoji: true,
      },
    },
    label: {
      type: 'plain_text',
      text: 'Label',
      emoji: true,
    },
  },
];