Skip to content

Conversation

ahmedsemih
Copy link

@ahmedsemih ahmedsemih commented Sep 22, 2025

The DropdownMenuPrimitive.Item component type does not include the variant and inset props by default.
These props were added in the Shadcn implementation by extending the base props type.

This PR adds variant and inset to the 8bit implementation using the same approach.

Closes #382


Summary by cubic

Adds optional inset and variant props to the 8bit DropdownMenuItem to match shadcn/ui and eliminate TS errors when using these props. Closes #382.

  • Bug Fixes
    • Extend DropdownMenuPrimitive.Item props with inset?: boolean and variant?: "default" | "destructive".
    • Aligns 8bit API with shadcn implementation; no runtime behavior changes.

Copy link

vercel bot commented Sep 22, 2025

@ahmedsemih is attempting to deploy a commit to the 8bitcn Team on Vercel.

A member of the Team first needs to authorize it.

Copy link

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 1 file

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.

DropdownMenuItem missing variant prop
1 participant