edc-web-components 0.8.1

A Rust Web Components with patternfly-yew client for EDC
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use yew::prelude::*;

#[derive(Properties, Clone, PartialEq)]
pub struct IdentifierProps {
  pub id: String,
}

#[component]
pub fn Identifier(props: &IdentifierProps) -> Html {
  html!(
    <div class="pf-v6-u-font-family-monospace">
      <small>{ &props.id }</small>
    </div>
  )
}