Skip to content

How to customize the Item Card

Mkdirs support two kinds of Item Card: Card with Image and Card with Icon (default).

Item Card with Image (item-card.tsx):

Item Card with Image

Item Card with Icon (item-card-2.tsx):

Item Card with Icon

Card with Icon is the default style, and you can change it to Card with Image by setting the SUPPORT_ITEM_ICON to false in the src/config/site.ts file.

// support item icon, default is true (aka, show item icon)
// NOTE: if you set true, you should make sure the item icon is available
// if you set false, the item card will show image instead of icon
export const SUPPORT_ITEM_ICON = false;