Skip to content

Costum Classes in Sidebar component internal div #595

@DavideCamp

Description

@DavideCamp

Detailed description

Describe in detail the issue you're having.
I want to add classes on the internal div that show sidebar items (sidebar-item-content) for customization like width or border

    <div className={classes} {...other}>
       <div className={`${prefix}--sidebar-item-content`}>{sidebar}</div>
       <div className={`${prefix}--content-section`}>{children}</div>
    </div>

Is this a feature request (new component, new icon), a bug, or a general issue? Is a feature request

Is this issue related to a specific component? Sidebar component

What did you expect to happen? I expect to pass classes as Props for the internal div
What would you like to see changed? I would like to see the ... other props also be passed to the sidebar internal div (sidebar-item-content)

What version of the WFP UI (Carbon Design System) are you using? I'm using the new design system, the last version ( July 2024)

If you want i can create a PR with this new feature, Thanks

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