Skip to content

feat: add showDraggingEndTime prop#12

Draft
sgandhi-gg wants to merge 1 commit into
anton-patrushev:fix-timezone-drag-n-drop-issuefrom
sgandhi-gg:hide-dragging-end-time
Draft

feat: add showDraggingEndTime prop#12
sgandhi-gg wants to merge 1 commit into
anton-patrushev:fix-timezone-drag-n-drop-issuefrom
sgandhi-gg:hide-dragging-end-time

Conversation

@sgandhi-gg

Copy link
Copy Markdown
Collaborator

Summary

Add showDraggingEndTime prop to conditionally show/hide the end time label when dragging events.

Changes

  • types.ts: Added showDraggingEndTime?: boolean to CalendarProviderProps and CalendarBodyProps
  • CalendarKit.tsx: Pass showDraggingEndTime prop through to CalendarBody
  • CalendarBody.tsx: Pass showDraggingEndTime to DraggingHour component
  • DraggingHour.tsx: Conditionally render end time label based on showEndTime prop

Behavior

  • Default: true (maintains backward compatibility - end time shows when dragging)
  • When false: Only start time shows when dragging (cleaner UI for single-time display)

Stacked on

Testing

  • With showDraggingEndTime={false} - only start time visible during drag
  • With showDraggingEndTime={true} - both start and end times visible during drag
  • Without prop (default) - both times visible (backward compatible)

Made with Cursor

…el when dragging

Co-authored-by: Cursor <cursoragent@cursor.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant