All checks were successful
actionlint check / actionlint check (pull_request) Successful in 9s
conventional commit messages check / conventional commit messages check (pull_request) Successful in 10s
conventional pull request title check / conventional pull request title check (pull_request) Successful in 6s
dotenv-linter check / dotenv-linter check (pull_request) Successful in 20s
GitLeaks check / GitLeaks check (pull_request) Successful in 15s
checkov check / checkov check (pull_request) Successful in 1m11s
hadolint check / hadolint check (pull_request) Successful in 15s
htmlhint check / htmlhint check (pull_request) Successful in 27s
markdownlint check / markdownlint check (pull_request) Successful in 25s
Prettier check / Prettier check (pull_request) Successful in 26s
Stylelint check / Stylelint check (pull_request) Successful in 19s
ShellCheck check / ShellCheck check (pull_request) Successful in 40m25s
yamllint check / yamllint check (pull_request) Successful in 40m9s
Rust check / Rust check (pull_request) Successful in 1h0m51s
22 lines
497 B
Rust
22 lines
497 B
Rust
use dioxus::prelude::*;
|
|
use dioxus_free_icons::{Icon, IconShape};
|
|
|
|
#[component]
|
|
pub(crate) fn InputLabel<I: IconShape + Clone + PartialEq + 'static>(
|
|
icon: I,
|
|
r#for: Option<String>,
|
|
) -> Element {
|
|
rsx! {
|
|
label {
|
|
r#for,
|
|
class: "mt-0.5 min-w-7 flex flex-row justify-center items-center",
|
|
Icon {
|
|
class: "text-gray-600",
|
|
icon,
|
|
height: 16,
|
|
width: 16
|
|
}
|
|
}
|
|
}
|
|
}
|