Skip to main content

edc_web_components/components/
identifier.rs

1use yew::prelude::*;
2
3#[derive(Properties, Clone, PartialEq)]
4pub struct IdentifierProps {
5  pub id: String,
6}
7
8#[component]
9pub fn Identifier(props: &IdentifierProps) -> Html {
10  html!(
11    <div class="pf-v6-u-font-family-monospace">
12      <small>{ &props.id }</small>
13    </div>
14  )
15}