packages/uikit-playground/src/Payload/actionBlock/input/datePicker.ts
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,
},
},
];