Skip to content

Can't customize ThemedSiderV2 width via token or props #6903

@Bekforever

Description

@Bekforever

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 stylenot 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:

npm run refine swizzle

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions