@aotearoan/neon
Version:
Neon is a lightweight design library of Vue 3 components with minimal dependencies.
18 lines (17 loc) • 584 B
TypeScript
import type { NeonIdentifiable } from '@/model/common/entity/NeonIdentifiable';
import type { NeonSelectable } from '@/model/common/entity/NeonSelectable';
/**
* Provides the necessary fields for rendering a card list items as a link. See
* <a href="/layout/card-list">NeonCardList</a>.
*/
export interface NeonCardListModel<T extends NeonIdentifiable> extends NeonSelectable {
model: T;
/**
* href to open when the user clicks on this card.
*/
href?: string;
/**
* Disable the card so it cannot be interacted with.
*/
disabled?: boolean;
}