MCPcopy Create free account
hub / github.com/DioxusLabs/dioxus-components / attr

Function attr

primitives/src/lib.rs:419–426  ·  view source on GitHub ↗
(name: &'static str, value: &str)

Source from the content-addressed store, hash-verified

417
418#[cfg(test)]
419mod tests {
420 use super::*;
421
422 fn attr(name: &'static str, value: &str) -> Attribute {
423 Attribute {
424 name,
425 namespace: None,
426 volatile: false,
427 value: Text(value.to_string()),
428 }
429 }

Calls

no outgoing calls

Tested by 1