wondering about build size #3469
-
Differently to something like shadcn, ark is an actual npm package and ships all the components, and I was wondering if that would have some impact on the build size or anything similar if every component is in the packages even if I don't use them in the app itself. How are the components in the library that I don't use handled? I hope my question is clear and thank you |
Beta Was this translation helpful? Give feedback.
Answered by
segunadebayo
May 13, 2025
Replies: 1 comment 1 reply
-
Ark UI treeshakes pretty well for most bundlers. However, to be extra cautious, we recommend importing the component from their dedicated entry points. import { Accordion } from '@ark-ui/react/accordion' NOT import { Accordion } from '@ark-ui/react' |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
and-rs
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Ark UI treeshakes pretty well for most bundlers. However, to be extra cautious, we recommend importing the component from their dedicated entry points.
NOT