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

Function BlockProfile

preview/src/main.rs:1315–1347  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1313
1314#[component]
1315fn BlockProfile() -> Element {
1316 rsx! {
1317 div { style: "display: flex; align-items: center; gap: 0.75rem;",
1318 ImageAvatar {
1319 size: AvatarImageSize::Medium,
1320 src: "https://avatar.vercel.sh/avery-lin",
1321 alt: "Avery Lin",
1322 aria_label: "Avatar",
1323 "AL"
1324 }
1325 div { style: "flex: 1; display: grid; gap: 0.1rem; min-width: 0;",
1326 div { style: "display: flex; align-items: center; gap: 0.4rem;",
1327 span { style: "font-weight: 600; color: var(--secondary-color-3);", "Avery Lin" }
1328 Badge {
1329 variant: BadgeVariant::Secondary,
1330 style: "padding: 0.15rem 0.3rem; background-color: var(--focused-border-color); color: white;",
1331 VerifiedIcon {}
1332 }
1333 }
1334 span { style: "color: var(--secondary-color-5); font-size: 0.85rem;", "@averylin" }
1335 }
1336 Button { variant: ButtonVariant::Outline, "Follow" }
1337 }
1338 p { style: "margin: 1.1rem 0 0; color: var(--secondary-color-5); font-size: 0.9rem; line-height: 1.55;",
1339 "Building UI primitives that ship to web, desktop, and mobile. Mostly Rust, mostly weekends."
1340 }
1341 div { style: "display: flex; gap: 0.35rem; margin-top: 0.85rem; flex-wrap: wrap;",
1342 Badge { variant: BadgeVariant::Outline, "Rust" }
1343 Badge { variant: BadgeVariant::Outline, "WebAssembly" }
1344 Badge { variant: BadgeVariant::Outline, "UI" }
1345 }
1346 }
1347}
1348
1349#[component]
1350fn BlockStats() -> Element {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected