Skip to main content

PostNavLinks

Function PostNavLinks 

Source
pub(super) fn PostNavLinks(props: PostNavLinksProps) -> impl IntoView
Expand description

文章相邻导航组件。

Props:

  • prev:上一篇文章摘要
  • next:下一篇文章摘要
  • sample:图鉴使用不可导航的样例锚点,默认 false。

两张并排卡片,下一篇右对齐;窄容器中纵向排列。 无相邻文章时不渲染对应链接,两侧都缺失时不渲染导航。

§Required Props

§Optional Props