'use client'; import { Layout, Section, Article, Headline, Subhead, BodyText, Rule, } from 'newspaperui-components'; import { Demo } from '@/components/Demo'; import { PropsTable } from '@/components/PropsTable'; export default function RulePage() { return (
Rule 分隔线 显式分隔线组件。三个 variant 覆盖 hairline、double、thick,支持水平和垂直方向。 API 水平方向三种 variant

hairline

double

thick

垂直方向
左栏内容
右栏内容
`} >

Markets responded cautiously through the morning session. The pound traded sideways against the dollar.

Analysts at three of the City’s largest houses framed the move as a holding pattern.

使用建议

Rule 在 Section 栅格内默认 gridColumn: 1 / -1 全跨。 如果只需要跨部分列,传入 span prop。垂直 Rule 适合放在 flex 容器中作为栏间分隔。

); }