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

Function ComponentInstallCommand

preview/src/main.rs:921–930  ·  view source on GitHub ↗
(name: &'static str)

Source from the content-addressed store, hash-verified

919
920#[component]
921fn ComponentInstallCommand(name: &'static str) -> Element {
922 let command = format!("dx components add {name}");
923
924 rsx! {
925 div { class: "dx-component-inline-command",
926 code { "{command}" }
927 CopyCommandButton { command: command.clone() }
928 }
929 }
930}
931
932#[component]
933fn ManualComponentInstallation(component: HighlightedCode, style: HighlightedCode) -> Element {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected