Skip to content

feat(resizable): add duration prop and CSS variable for animation customization#18

Merged
bob-obringer merged 1 commit intomainfrom
feat/resizable-animation-customization
Jan 21, 2026
Merged

feat(resizable): add duration prop and CSS variable for animation customization#18
bob-obringer merged 1 commit intomainfrom
feat/resizable-animation-customization

Conversation

@bob-obringer
Copy link
Collaborator

Summary

  • Add duration prop (default 400ms) to control animation speed for collapse/expand
  • Add --resizable-easing CSS variable for theme-level easing customization
  • Easing can also be set per-component via Tailwind: className="[--resizable-easing:ease-out]"

Usage

// Custom speed
<ResizablePanel animated duration={200} collapsed={isCollapsed} />

// Custom easing via Tailwind
<ResizablePanel
  className="[--resizable-easing:ease-out]"
  animated
  collapsed={isCollapsed}
/>

Test plan

  • Verify animation speed changes with different duration values
  • Verify easing customization via CSS variable
  • Verify Tailwind arbitrary property syntax works

🤖 Generated with Claude Code

@vercel
Copy link

vercel bot commented Jan 21, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
ui Ready Ready Preview, Comment Jan 21, 2026 1:04am

Request Review

…tomization

- Add `duration` prop (default 400ms) to control animation speed
- Add `--resizable-easing` CSS variable for theme-level easing control
- Document Tailwind arbitrary property syntax for inline easing
- Bump version to 1.2.1

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@bob-obringer bob-obringer force-pushed the feat/resizable-animation-customization branch from d90028f to 9e400e1 Compare January 21, 2026 01:03
@bob-obringer bob-obringer merged commit 4928a69 into main Jan 21, 2026
3 checks passed
@bob-obringer bob-obringer deleted the feat/resizable-animation-customization branch January 21, 2026 01:12
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