package ui import ( "fmt" "mal/web/components/watchlist" ) type AnimeCardProps struct { ID int Title string ImageURL string Href string // Options to customize the card behavior Class string // override default wrapper class ImgClass string // override default image class TitleClass string // override default title class HideTitle bool // if true, do not render the default title block CurrentNode bool // if true, renders a div instead of an anchor tag (useful for graph nodes) Synopsis string // optional synopsis for hover detail PlayHref string // optional play button href (anchored to poster) // Watchlist integration TitleEnglish string TitleJapanese string Airing bool WatchlistStatus string // empty if not in watchlist DisableWatchlist bool // if true, don't render the watchlist button } templ AnimeCard(props AnimeCardProps) {
{ props.Synopsis }