Tabler React 2 Docs
Horizontal Rule
Horizontal Rule
Horizontal rules are used to separate content in a layout.
Signature
import { Util } from "tabler-react-2";
<Util.Hr {...props} />;
Tip: You can destructure the
Util
component to bring individual components into scope. For example:
import { Util } from "tabler-react-2";const { Hr } = Util;export default () => (<><Hr /></>);
Props
Prop | Required | Type | Default | Description |
---|---|---|---|---|
text | No | string | The text to display in the horizontal rule. |
Basic Usage
The Hr
component is used to create a horizontal rule.
<Hr />
Text
You can pass a text
prop to the Hr
component to display text in the horizontal rule.
<Hr text="Hello world" />