Skip to content

SvgIcon viewBox hardcoded #747

@ruswerner

Description

@ruswerner

I am trying to use an existing SVG icon with the svg-icon.jsx component, and the viewBox is hardcoded to 0 0 24 24 which crops out my icon. My icon is drawn on a larger scale and needs a different view box to be set. I couldn't see a way to affect this property and I'd rather not rescale all my icon assets to the 24px view box.

Do you recommend extending this component, or do you think this should be configurable?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    component: SvgIconThe React component.scope: stylesSpecific to @mui/styles. Legacy package, @material-ui/styled-engine is taking over in v5.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions