Synphonyte / leptos-use

Collection of essential Leptos utilities inspired by React-Use / VueUse
https://leptos-use.rs/
Apache License 2.0
333 stars 78 forks source link

UseDisplayMediaOptions is always Default. #114

Closed mvvvv closed 5 months ago

mvvvv commented 5 months ago

Hi ! I do not see a way to have a non-default UseDisplayMediaOptions. Which means that use_display_media_with_options is useless

maccesch commented 5 months ago

It is not useless 😂

You can use it like the following example:

use_display_media_with_options(
    UseDisplayMediaOptions::default()
        .audio(true),
);
mvvvv commented 5 months ago

ho ... DefaultBuilder. It's tricky. Thanks.