Skip to content
Discussion options

You must be logged in to vote

Unfortunately, no, the props are not identical. While Shadcn tries to keep the high-level API similar for consistency, the underlying primitives (Radix UI vs. Base UI) have different naming conventions and internal logic.

Why your code might break:
Prop Naming: Radix often uses specific prefixes or names for state props (e.g., onOpenChange), while Base UI might use different naming conventions (e.g., open and onChange).

Component Structure: The way components are nested can differ. For example, a DropdownMenu in Radix might have a slightly different internal tree compared to Base UI.

CSS Classes: Since the internal structure changes, your custom Tailwind classes (especially those targetin…

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
4 replies
@indramal
Comment options

@jaem0629
Comment options

@jaem0629
Comment options

@indramal
Comment options

Comment options

You must be logged in to vote
2 replies
@indramal
Comment options

@Macho006
Comment options

Answer selected by indramal
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants