Problem
Currently, there is no way to customize the width of the <ThemedSiderV2 /> component in Refine. It does not expose a width prop nor does it pick up the siderWidth value from the Ant Design theme token (components.Layout.siderWidth).
What I tried
- Passing
width via props — not accepted
- Overriding styles via
style — not supported, since style prop is not passed
- Setting
components.Layout.siderWidth in <ConfigProvider> — has no effect
Why it matters
Refine aims to be flexible and customizable, but currently it's impossible to adjust the sidebar width unless I eject the entire layout with npx refine generate layout. This is not ideal for small customizations.
Suggested solution
- Expose a
width or style prop in <ThemedSiderV2 />
- Or make
<ThemedSiderV2 /> respect the siderWidth from Ant Design's theme tokens (components.Layout.siderWidth)
Workaround
The only workaround is to eject layout via CLI:
Problem
Currently, there is no way to customize the width of the
<ThemedSiderV2 />component in Refine. It does not expose awidthprop nor does it pick up thesiderWidthvalue from the Ant Design theme token (components.Layout.siderWidth).What I tried
widthvia props —not acceptedstyle—not supported, since style prop is not passedcomponents.Layout.siderWidthin<ConfigProvider>—has no effectWhy it matters
Refine aims to be flexible and customizable, but currently it's impossible to adjust the sidebar width unless I eject the entire layout with
npx refine generate layout. This is not ideal for small customizations.Suggested solution
widthorstyleprop in<ThemedSiderV2 /><ThemedSiderV2 />respect thesiderWidthfrom Ant Design's theme tokens (components.Layout.siderWidth)Workaround
The only workaround is to eject layout via CLI: