Dashboard button #25

Merged
meraghon merged 8 commits from feat/dashboard-button into main 2025-12-05 13:35:07 +00:00
2 changed files with 11 additions and 11 deletions
Showing only changes of commit f4aef563d0 - Show all commits

No files matched your search

+8 -8
View File
5
@@ -14,18 +14,18 @@ pub fn DashboardButton(
view! {
<button
type="button"
class="dashboard-button flex items-start gap-3 rounded-lg border p-4
hover:bg-gray-100 transition cursor-pointer w-full text-left"
on:click=on_click
>
{icon.as_ref().map(|src| view! {
<img src={src.clone()} class="h-8 w-8" alt="icon"/>
})}
class="dashboard-button flex items-start gap-3 rounded-lg border-grey-300 p-6
hover:bg-gray-100 transition cursor-pointer w-full text-left
shadow-[inset_0_0_6px_rgba(0,0,0,0.12)]"
on:click=on_click>
<div class="flex flex-col">
BobdaFett commented 2025-11-27 21:28:40 +00:00 (Migrated from github.com)
Review

This whole component needs documentation - at least give a title to the component, a brief description, explain the props, and a usage example. This is included with other components that have been created, specifically the selection lists (ChipsList, CheckboxList, etc.).

This whole component needs documentation - at least give a title to the component, a brief description, explain the props, and a usage example. This is included with other components that have been created, specifically the selection lists (`ChipsList`, `CheckboxList`, etc.).
{icon.as_ref().map(|src| view! {
<img src={src.clone()} class="h-8 w-8" alt="icon"/>
})}
<h3 class="font-semibold text-base">{title.clone()}</h3>
{description.as_ref().map(|d| view! {
<p class="text-sm text-gray-600">{d.clone()}</p>
<p class="text-sm text-gray-600 pt-6">{d.clone()}</p>
})}
</div>
</button>
+3 -3
View File
@@ -1,7 +1,7 @@
mod action_button;
mod checkbox;
mod chips;
pub(crate) mod dashboard_button;
mod dashboard_button;
mod loading;
mod multi_entry;
mod panel;
@@ -11,6 +11,6 @@ mod select;
mod text_field;
pub use self::{
action_button::*, checkbox::*, chips::*, loading::*, multi_entry::*, panel::*, radio::*,
row::*, select::*, text_field::*,
action_button::*, checkbox::*, chips::*, dashboard_button::*, loading::*, multi_entry::*,
panel::*, radio::*, row::*, select::*, text_field::*,
};