JGuang

Footer

Footer · Ant Design Mobile

Preview
npm install antd-mobile@5.43.0

Footer

When to Use

Install

npm install antd-mobile@5.43.0

antd-mobile is for mobile web, not React Native or Mini Programs. React 19 projects must register createRoot with unstableSetRender at the entry, or imperative APIs such as Toast and Dialog cannot render. Switch dark mode with <html data-prefers-color-scheme="dark">.

Examples come from the official Ant Design Mobile repository (MIT) at the commit published as npm 5.43.0. Presentation helpers such as DemoBlock are JGuang rewrites, not antd-mobile APIs.

When to Use

Applicable to information description at the bottom of the page。

Demos

Props

NameDescriptionTypeDefault
labelTop content with a dividing linestring | ReactNode-
linksLinks to contentLinkItem[]-
labelThe common content sectionstring | ReactNode-
chipsChips, only one line of content is allowed. If the content exceeds the width, the content will be automatically interceptedChipItem[]-
onTagClickClick the bottom label to trigger, and it will only take effect when the label 'type' is' link '(item: ChipItem, index: number) => void-
onLinkClickClicking the link triggers an event that intercepts the href jump to the A tag(item: LinkItem, index: number) => void-

ChipItem

NameDescriptionTypeDefault
textTag Textstring | ReactNode-
typeTag Type, plainis pure display, link is clickable'plain' | 'link''plain'

LinkItem

NameDescriptionTypeDefault
textText of linksstring-
hrefHref of linksstring-

CSS Variables

NameDescriptionDefault
--background-colorbackgroundvar(--adm-color-background)