use_permission
Reactive Permissions API.
Demo
Usage
use leptos::*;
use leptos_use::use_permission;
#[component]
fn Demo() -> impl IntoView {
let microphone_access = use_permission("microphone");
view! { }
}
Server-Side Rendering
On the server the returned signal will always be PermissionState::Unknown
.