ppc login works in mme main
This commit is contained in:
@@ -1,13 +1,23 @@
|
||||
use dioxus::prelude::*;
|
||||
use dioxus_primitives::label::{self, LabelProps};
|
||||
#[css_module("/src/components/label/style.css")]
|
||||
struct Styles;
|
||||
|
||||
const STYLE: &str = r#".dx-label {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
color: var(--text-2);
|
||||
font-size: 0.75rem;
|
||||
font-weight: 500;
|
||||
letter-spacing: 0.01em;
|
||||
line-height: 1.2;
|
||||
}
|
||||
"#;
|
||||
#[component]
|
||||
pub fn Label(props: LabelProps) -> Element {
|
||||
rsx! {
|
||||
crate::OnceStyle { href: "dioxus-components/label", css: STYLE }
|
||||
|
||||
label::Label {
|
||||
class: Styles::dx_label,
|
||||
class: "dx-label",
|
||||
html_for: props.html_for,
|
||||
attributes: props.attributes,
|
||||
{props.children}
|
||||
|
||||
Reference in New Issue
Block a user