mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-27 05:00:48 +08:00
1.5 KiB
1.5 KiB
Header
Header is not just header. You know UI always likes to add a bar as the prefix of the header (which is a great idea to avoid boring text). So here it is.
<div style="padding-left: 24px; position: relative;">
<div style="
position: absolute;
left: 0;
top: 0;
bottom: 0;
width: 24px;
background-color: rgba(128, 128, 128, .5);
"></div>
<n-h1><n-text type="primary">sin(x)</n-text></n-h1>
<n-h1 prefix="bar"><n-text type="primary">sin(x)</n-text></n-h1>
<n-h1 prefix="bar" align-text><n-text type="primary">sin(x)</n-text></n-h1>
<n-h1 prefix="bar" align-text type="success"><n-text type="success">sin(x)</n-text></n-h1>
<n-h1 prefix="bar" align-text type="info"><n-text type="info">sin(x)</n-text></n-h1>
<n-h1 prefix="bar" align-text type="warning"><n-text type="warning">sin(x)</n-text></n-h1>
<n-h1 prefix="bar" align-text type="error"><n-text type="error">sin(x)</n-text></n-h1>
<n-h2>cos(x)</n-h2>
<n-h2 prefix="bar">cos(x)</n-h2>
<n-h2 prefix="bar" align-text>cos(x)</n-h2>
<n-h3>-sin(x)</n-h3>
<n-h3 prefix="bar">-sin(x)</n-h3>
<n-h3 prefix="bar" align-text>-sin(x)</n-h3>
<n-h4>-cos(x)</n-h4>
<n-h4 prefix="bar">-cos(x)</n-h4>
<n-h4 prefix="bar" align-text>-cos(x)</n-h4>
<n-h5>sin(x)</n-h5>
<n-h5 prefix="bar">sin(x)</n-h5>
<n-h5 prefix="bar" align-text>sin(x)</n-h5>
<n-h6>What a loop!</n-h6>
<n-h6 prefix="bar">What a loop!</n-h6>
<n-h6 prefix="bar" align-text>What a loop!</n-h6>
</div>