React

Article

Article is a utility component that helps use consistent selection and line-break policies.

Available since@seed-design/react@1.0.6, @seed-design/css@1.0.6

Usage

import { Article } from "@seed-design/react";
<Article>Article</Article>

Props

Same as BoxProps.

Examples

Word Break Behavior

Sets word-break behavior based on language inferred through the lang global attribute.

In Korean documents/elements, line breaks are prevented within a phrase, while other languages follow standard rules. Line breaks occur within words longer than the container. In Japanese, line breaks are adjusted to prevent awkward positions, such as before punctuation, before small kana, before iteration marks, and similar.

User Select Behavior

Elements inside <Article /> can be selected by users.

Disable User Selection

You can make elements inside <Article /> non-selectable using the Text component's userSelect="none" prop.

Text

Learn more about the Text component.

Prevent PullToRefresh or TabsCarousel Gestures

Elements inside <Article /> can be selected by users. Therefore, when selecting inner elements through drag gestures, unintended PTR (pull-to-refresh) or tab swipe gestures may occur.

You can pass PullToRefresh.preventPull or Tabs.carouselPreventDrag to <Article /> to prevent events generated from Article from triggering gestures.

Loading...
Loading...

Using asChild or as prop

<Article /> renders as <article> by default, but can be changed to another element using the asChild or as prop.

Composition

Learn more about the asChild prop.

Table of contents