Skip to content

feat(mockup-code): add optional .mockup-code-btn part class#4428

Open
codybrom wants to merge 1 commit intosaadeghi:masterfrom
codybrom:feat/mockup-code-btn
Open

feat(mockup-code): add optional .mockup-code-btn part class#4428
codybrom wants to merge 1 commit intosaadeghi:masterfrom
codybrom:feat/mockup-code-btn

Conversation

@codybrom
Copy link

@codybrom codybrom commented Feb 6, 2026

Adds optional .mockup-code-btn part class for .mockup-code. Useful for copy buttons or other actions.

  • Absolute positioned top-right with z-10
  • Inherits parent text color with subtle bg-current/10 background
  • 60% opacity, transitions to 100% on hover
  • CSS Only - Users have provide their own click handler.
  • Docs updated with "With button" example and part classname entry

Example: https://play.tailwindcss.com/FIPJooQLyR?file=css

image

@saadeghi saadeghi self-assigned this Feb 6, 2026
@saadeghi saadeghi added the 5.6 label Feb 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants