-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Open
Description
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
orstyle
prop in<ThemedSiderV2 />
- Or make
<ThemedSiderV2 />
respect thesiderWidth
from Ant Design's theme tokens (components.Layout.siderWidth
)
Workaround
The only workaround is to eject layout via CLI:
npm run refine swizzle
Metadata
Metadata
Assignees
Labels
No labels