use lucide_yew::Terminal;
use yew::prelude::*;
use crate::components::ui::alert::{Alert, AlertDescription, AlertTitle};
#[function_component]
pub fn AlertDemo() -> Html {
html! {
<Alert>
<Terminal class="h-4 w-4" />
<AlertTitle>{"Heads up!"}</AlertTitle>
<AlertDescription>
{"You can add components to your app using the cli."}
</AlertDescription>
</Alert>
}
}
use radix_yew_icons::RocketIcon;
use yew::prelude::*;
use crate::components::ui::alert::{Alert, AlertDescription, AlertTitle};
#[function_component]
pub fn AlertDemo() -> Html {
html! {
<Alert>
<RocketIcon class="h-4 w-4" />
<AlertTitle>{"Heads up!"}</AlertTitle>
<AlertDescription>
{"You can add components to your app using the cli."}
</AlertDescription>
</Alert>
}
}
use yew::prelude::*;
use crate::components::ui::alert::{Alert, AlertDescription, AlertTitle};
#[component]
fn Usage() -> impl IntoView {
view! {
<Alert>
<Terminal class="h-4 w-4" />
<AlertTitle>{"Heads up!"}</AlertTitle>
<AlertDescription>
{"You can add components and dependencies to your app using the cli."}
</AlertDescription>
</Alert>
}
}
use lucide_yew::Terminal;
use yew::prelude::*;
use crate::components::ui::alert::{Alert, AlertDescription, AlertTitle};
#[function_component]
pub fn AlertDemo() -> Html {
html! {
<Alert>
<Terminal class="h-4 w-4" />
<AlertTitle>{"Heads up!"}</AlertTitle>
<AlertDescription>
{"You can add components to your app using the cli."}
</AlertDescription>
</Alert>
}
}
use radix_yew_icons::RocketIcon;
use yew::prelude::*;
use crate::components::ui::alert::{Alert, AlertDescription, AlertTitle};
#[function_component]
pub fn AlertDemo() -> Html {
html! {
<Alert>
<RocketIcon class="h-4 w-4" />
<AlertTitle>{"Heads up!"}</AlertTitle>
<AlertDescription>
{"You can add components to your app using the cli."}
</AlertDescription>
</Alert>
}
}