How to use boolean attributes on web components in Yew?

The yew docs say that boolean attributes can be used like for <p> below.

But when I use a tag the html! macro doesn't know about (e.g. for a web component), I get the error below. I interpret that as saying the attribute is not a string.

html! {
    <>
    <p hidden=true></p>
    <some-component an-attribute=true />
    </>
}
error[E0277]: the trait bound `bool: IntoPropValue<Option<implicit_clone::unsync::string::IString>>` is not satisfied

Is there any way to tell Yew to expect a boolean here? Or how else can I work around the problem?

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.