react-pacomo icon indicating copy to clipboard operation
react-pacomo copied to clipboard

External classes

Open thiagotigaz opened this issue 9 years ago • 1 comments

How can i assign bootstrap classes to my component.

I want to simple add bg-warning, but it prints app-ComponentName-bg-warning and style does not works.

Is there a way to fix this?

thiagotigaz avatar Nov 22 '16 19:11 thiagotigaz

FWIW, there is an undocumented data-pacomoSkip attribute which will disable pacomo classname rendering for an element. For example:

<div className="foo">
    <div data-pacomoSkip className="bar" />
</div>

results in

<div class="package-Component package-Component-foo">
    <div data-pacomoskip="true" class="bar" />
</div>

It actually disables all processing for children elements as well. For example,

<div className="foo">
    <div data-pacomoSkip className="bar">
        <div className="baz" />
    </div>
</div>

results in the bar and baz classes being skipped.

kryten87 avatar Jan 27 '17 18:01 kryten87