Configurator
<div style="height:160px;position:relative"><oc-divider-v1></oc-divider-v1></div>Usage
Variants
The divider is available in two variants:
- solid
- dashed
Solid
Dashed
HTML
<p class="demo-label">Solid</p><oc-divider-v1 in-flow></oc-divider-v1></div>
<p class="demo-label">Dashed</p><oc-divider-v1 variant="dashed" in-flow></oc-divider-v1></div>
Behavior
Interaction
The divider is not interactive.
Fitting
The divider uses fill-parent by default, but you can also adjust the width of the horizontal and the height of the vertical divider. It has a border-width of 1px. To maintain grid spacing, the horizontal divider will not take up any vertical space, and the vertical divider will not take up any horizontal space.
fill-parent
fill-parent
HTML
<p class="demo-label" style="text-align:center">fill-parent</p><oc-divider-v1 in-flow></oc-divider-v1></div>
<div style="background:#fff;padding:24px 16px;display:flex;justify-content:center;align-items:center;gap:16px;height:112px;box-sizing:border-box"><p class="demo-label">fill-parent</p><div style="height:64px;position:relative"><oc-divider-v1 orientation="vertical"></oc-divider-v1></div><span style="width:64px"></span></div>
When you use the divider to separate content within a group, ensure that the left and right spacing is the same as that of the content. Use fill-parent without left and right spacing to separate different sections. You can also use full-width dividers to imply elevation for native elements, such as the bottom bar.
HTML
<div class="on-frame"><div style="background:#fff;margin:0 auto;padding-top:24px;max-width:540px">
<div style="padding:0 16px"><oc-row-v2 icon-right="arrow-right" hide-divider><a href="#" aria-label="Meine Bestellungen"></a>Meine Bestellungen</oc-row-v2><oc-row-v2 icon-right="arrow-right"><a href="#" aria-label="Rücksendungen"></a>Rücksendungen</oc-row-v2><p class="demo-label" style="text-align:center">fill-parent (inset)</p><oc-row-v2 icon-right="arrow-right"><a href="#" aria-label="Rechnungen"></a>Rechnungen</oc-row-v2></div>
<p class="demo-label" style="text-align:center;padding:16px 0 4px">fill-parent (full width)</p>
<oc-divider-v1 in-flow></oc-divider-v1>
<oc-tab-bar-v1 icon-position="top" variant="centered"><oc-tab-item-v1><button><oc-icon-v1 type="home"></oc-icon-v1>Start</button></oc-tab-item-v1><oc-tab-item-v1><button><oc-icon-v1 type="search-navigation"></oc-icon-v1>Suche</button></oc-tab-item-v1><oc-tab-item-v1><button><oc-icon-v1 type="basket"></oc-icon-v1>Warenkorb<oc-badge-v2 variant="primary">1</oc-badge-v2></button></oc-tab-item-v1><oc-tab-item-v1><button><oc-icon-v1 type="wishlist"></oc-icon-v1>Merkzettel<oc-badge-v2 variant="primary">1</oc-badge-v2></button></oc-tab-item-v1><oc-tab-item-v1><button><oc-icon-v1 type="person"></oc-icon-v1>Konto</button></oc-tab-item-v1></oc-tab-bar-v1>
</div>Placement
Place the divider horizontally to separate content vertically, or place it vertically to separate content horizontally. Some components, such as the row, accordion, expander, or paper card, already utilize the divider.
Wir liefern in der Regel innerhalb von zwei bis vier Werktagen zu dir nach Hause.
Obermaterial: Leder. Innenmaterial: Textil. Laufsohle: Gummi.
Extra auf Sneaker
Nur bis 30.09.
Gutscheincode: SNEAKER20
Extra auf Sneaker
Nur bis 30.09.
HTML
<oc-accordion-v1 title="Lieferung"><p class="oc-copy-100">Wir liefern in der Regel innerhalb von zwei bis vier Werktagen zu dir nach Hause.</p></oc-accordion-v1>
<oc-expander-v1 variant="row-primary" cutoff-height="0" hide-fade oc-aria-label="Weitere Details"><p class="oc-copy-100">Obermaterial: Leder. Innenmaterial: Textil. Laufsohle: Gummi.</p></oc-expander-v1>
<oc-paper-card-v1 size="100"><oc-tag-v1 variant="sale" size="50">20 % Extra</oc-tag-v1><p class="demo-title">Extra auf Sneaker</p><p class="demo-copy">Nur bis 30.09.</p><p slot="footer" class="demo-copy">Gutscheincode: SNEAKER20</p></oc-paper-card-v1>
<oc-paper-card-v1 size="50"><oc-tag-v1 variant="sale" size="50">20 % Extra</oc-tag-v1><p class="demo-title">Extra auf Sneaker</p><p class="demo-copy">Nur bis 30.09.</p></oc-paper-card-v1>
Best practices
Lieferung in 2 bis 4 Werktagen
Rücksendung innerhalb von 30 Tagen
Mojo Drop
Die neue Kollektion ist da.
Versand
Rücksendung
Zahlung
Hilfe & Kontakt
Versand
Rücksendung
Zahlung
Hilfe & Kontakt
Accessibility
For information on accessibility, refer to the technical documentation.
Status
Implementation
Note: For full technical documentation of this component, visitStorybook/divider
Live demo
HTML
<div class="on-frame" style="padding:32px 16px">
<div style="width:100%;max-width:390px;margin:0 auto;background:#fff;border-radius:16px;overflow:hidden;box-shadow:0 1px 3px rgba(0,0,0,.08)">
<div style="display:grid;gap:16px;padding:20px 16px 24px">
<p class="oc-headline-200" style="margin:0">Warenkorb (2 Artikel)</p>
<div style="display:flex;gap:12px"><img src="/previews/imagery/samples/otto-product-still/product-armchair.webp" alt="" width="72" height="72" style="border-radius:8px;flex:none"><div style="display:grid;gap:2px"><span class="oc-copy-100">Sessel mit Bouclé-Bezug, Creme</span><span class="oc-copy-75" style="color:var(--oc-semantic-color-text-secondary)">Menge: 1</span><span class="oc-copy-100" style="font-weight:700">349,00 €</span></div></div>
<oc-divider-v1 in-flow></oc-divider-v1>
<div style="display:flex;gap:12px"><img src="/previews/imagery/samples/otto-product-still/product-headphones.webp" alt="" width="72" height="72" style="border-radius:8px;flex:none"><div style="display:grid;gap:2px"><span class="oc-copy-100">Over-Ear-Kopfhörer, Schwarz</span><span class="oc-copy-75" style="color:var(--oc-semantic-color-text-secondary)">Menge: 1</span><span class="oc-copy-100" style="font-weight:700;color:var(--oc-semantic-color-text-sale)">79,99 €</span></div></div>
<oc-divider-v1 variant="dashed" in-flow></oc-divider-v1>
<div style="display:grid;gap:8px"><div style="display:flex;justify-content:space-between;gap:16px"><span class="oc-copy-100">Zwischensumme</span><span class="oc-copy-100">428,99 €</span></div><div style="display:flex;justify-content:space-between;gap:16px"><span class="oc-copy-100">Versand</span><span class="oc-copy-100" style="color:var(--oc-semantic-color-text-success)">kostenlos</span></div><div style="display:flex;justify-content:space-between;gap:16px"><span class="oc-copy-100">OTTO UP Punkte</span><span class="oc-copy-100">−5,00 €</span></div></div>
<oc-divider-v1 in-flow></oc-divider-v1>
<div style="display:flex;justify-content:space-between;align-items:baseline"><span class="oc-headline-100">Gesamtsumme</span><span class="oc-headline-200">423,99 €</span></div>
<p class="oc-copy-75" style="color:var(--oc-semantic-color-text-secondary)" style="margin:-12px 0 0">inkl. MwSt.</p>
<oc-button-v1 variant="primary">Zur Kasse</oc-button-v1>

