guides
guides copied to clipboard
Feature: Set custom guide color and guideline style through a prop
Environments
- Framework name: react-guides
Description
In my app I needed to be able to dynamically set the guide color in the properties panel via a prop, allowing the user to choose the color on the fly. I also needed the guide line to be dashed instead of solid.
I have made some changes in my fork to allow for this and wanted to post an issue here to see if this is something the community might want me to PR.
I added a guideColor prop and can add a prop to allow selecting a dashed or solid line.
I recommend using css. guides provide the classname.
<Guides className="custom" />
.custom .scena-guides .guide {
background: #f33;
}
But if you write pr, I will consider it.