I've made a header component with riot.js that should have different styling on some pages. I'd like to set the classes when mounting the tag in the html document, but can't figure out how. The tag looks like this:
<o-header>
<header class={ opts.structure, opts.overflow, opts.color }>
...
</header>
</o-header>
And here is the mounting:
riot.mount('o-header',
{
structure: 'o-header',
overflow: 's-overflow--hidden',
color: 'm-header--navy',
})
Is it a syntax error or am I misusing the opts feature here?