Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom Components: Allow importing css #1841

Open
2 tasks done
Janpot opened this issue Mar 30, 2023 · 0 comments
Open
2 tasks done

Custom Components: Allow importing css #1841

Janpot opened this issue Mar 30, 2023 · 0 comments
Labels
new feature New feature or request scope: toolpad-studio Abbreviated to "studio" waiting for 👍 Waiting for upvotes

Comments

@Janpot
Copy link
Member

Janpot commented Mar 30, 2023

Duplicates

  • I have searched the existing issues

Latest version

  • I have tested the latest version

Summary 💡

I'd like to add styles to custom components using CSS or sass. I'd like Toolpad to support importing CSS files in custom components and return the classes.

import * as classes from './my-styles.module.css';
import { createComponent } from '@mui/toolpad';

export default createComponent(() => <div className={classes.foo} />, { argTypes:  {} })

Examples 🌈

No response

Motivation 🔦

No response

@Janpot Janpot added new feature New feature or request waiting for 👍 Waiting for upvotes labels Mar 30, 2023
@prakhargupta1 prakhargupta1 added the scope: toolpad-studio Abbreviated to "studio" label Sep 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new feature New feature or request scope: toolpad-studio Abbreviated to "studio" waiting for 👍 Waiting for upvotes
Projects
None yet
Development

No branches or pull requests

2 participants