Hello there @edkiseki,
Would you be able to please fill this form so our team can take a look into this? Please add as much detail about your case as possible.
Looking forward to hearing from you via the form!
Cheers,
Matias
Hi @Matias.Monday,
I now understand what I had to do after going through the Github repository of the Vibe design system.
cx
comes from the classnames
npm package, so once installed, it can be imported like this:
import cx from "classnames";
The styles come from one of the relevant css files associated with a component. For instance Text component styles can be imported this way:
import textStyles from "monday-ui-react-core/dist/Text.css" ;
Interestingly, in the repository you have styles associated with Storybook pages only. It would be good to ensure that the style examples we see on the official Vibe page are all in the /dist
folder of monday-ui-react-core
to make things less confusing.
Thanks!
Hello again @edkiseki,
I am glad you found the solution!
I will share your feedback with the team in charge of Vibe!
Cheers,
Matias
Hello again @edkiseki,
I heard back from the team in charge of Vibe. They mentioned that the example shown in the code snippet uses a utility for using multiple class names when provided to the component using the className
prop. It is not required to provide it, and usually it’s meant for providing custom styles to components. The component itself already has its style without the className
prop, so you don’t need to use and provide the classname
package. It was used in the code snippet example for an internal use. We will make the code examples cleaner to make it less confusing, thanks for the feedback!
Got it @Matias.Monday .
Thanks for the update.
Happy to help @edkiseki !!