import{_ as e}from"./plugin-vue_export-helper-DlAUqK2U.js";import{c as l,a as n,o as a}from"./app-h9l50wZ_.js";const i={};function t(d,s){return a(),l("div",null,s[0]||(s[0]=[n(`<h2 id="item-widths" tabindex="-1"><a class="header-anchor" href="#item-widths"><span>Item widths</span></a></h2><p>By default each item has the same width.</p><div class="language- line-numbers-mode" data-highlighter="shiki" data-ext="" data-title="" style="--shiki-light:#383A42;--shiki-dark:#abb2bf;--shiki-light-bg:#FAFAFA;--shiki-dark-bg:#282c34;"><pre class="shiki shiki-themes one-light one-dark-pro vp-code"><code><span class="line"><span>&lt;ds-flex&gt;</span></span>
<span class="line"><span>  &lt;ds-flex-item&gt;&lt;ds-placeholder&gt;same&lt;/ds-placeholder&gt;&lt;/ds-flex-item&gt;</span></span>
<span class="line"><span>  &lt;ds-flex-item&gt;&lt;ds-placeholder&gt;same&lt;/ds-placeholder&gt;&lt;/ds-flex-item&gt;</span></span>
<span class="line"><span>&lt;/ds-flex&gt;</span></span></code></pre><div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0;"><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div></div></div><p>You can set widths as parts of the whole.</p><div class="language- line-numbers-mode" data-highlighter="shiki" data-ext="" data-title="" style="--shiki-light:#383A42;--shiki-dark:#abb2bf;--shiki-light-bg:#FAFAFA;--shiki-dark-bg:#282c34;"><pre class="shiki shiki-themes one-light one-dark-pro vp-code"><code><span class="line"><span>&lt;ds-flex&gt;</span></span>
<span class="line"><span>  &lt;ds-flex-item&gt;&lt;ds-placeholder&gt;1&lt;/ds-placeholder&gt;&lt;/ds-flex-item&gt;</span></span>
<span class="line"><span>  &lt;ds-flex-item width=&quot;2&quot;&gt;&lt;ds-placeholder&gt;2&lt;/ds-placeholder&gt;&lt;/ds-flex-item&gt;</span></span>
<span class="line"><span>  &lt;ds-flex-item width=&quot;3&quot;&gt;&lt;ds-placeholder&gt;3&lt;/ds-placeholder&gt;&lt;/ds-flex-item&gt;</span></span>
<span class="line"><span>&lt;/ds-flex&gt;</span></span></code></pre><div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0;"><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div></div></div><p>You can set widths as fix values.</p><div class="language- line-numbers-mode" data-highlighter="shiki" data-ext="" data-title="" style="--shiki-light:#383A42;--shiki-dark:#abb2bf;--shiki-light-bg:#FAFAFA;--shiki-dark-bg:#282c34;"><pre class="shiki shiki-themes one-light one-dark-pro vp-code"><code><span class="line"><span>&lt;ds-flex&gt;</span></span>
<span class="line"><span>  &lt;ds-flex-item width=&quot;200px&quot;&gt;&lt;ds-placeholder&gt;200px&lt;/ds-placeholder&gt;&lt;/ds-flex-item&gt;</span></span>
<span class="line"><span>  &lt;ds-flex-item&gt;&lt;ds-placeholder&gt;1&lt;/ds-placeholder&gt;&lt;/ds-flex-item&gt;</span></span>
<span class="line"><span>  &lt;ds-flex-item width=&quot;30%&quot;&gt;&lt;ds-placeholder&gt;30%&lt;/ds-placeholder&gt;&lt;/ds-flex-item&gt;</span></span>
<span class="line"><span>&lt;/ds-flex&gt;</span></span></code></pre><div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0;"><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div></div></div><p>You can set a default width for each item on the flex component.</p><div class="language- line-numbers-mode" data-highlighter="shiki" data-ext="" data-title="" style="--shiki-light:#383A42;--shiki-dark:#abb2bf;--shiki-light-bg:#FAFAFA;--shiki-dark-bg:#282c34;"><pre class="shiki shiki-themes one-light one-dark-pro vp-code"><code><span class="line"><span>&lt;ds-flex width=&quot;50%&quot;&gt;</span></span>
<span class="line"><span>  &lt;ds-flex-item&gt;&lt;ds-placeholder&gt;item&lt;/ds-placeholder&gt;&lt;/ds-flex-item&gt;</span></span>
<span class="line"><span>  &lt;ds-flex-item&gt;&lt;ds-placeholder&gt;item&lt;/ds-placeholder&gt;&lt;/ds-flex-item&gt;</span></span>
<span class="line"><span>  &lt;ds-flex-item width=&quot;100%&quot;&gt;&lt;ds-placeholder&gt;item&lt;/ds-placeholder&gt;&lt;/ds-flex-item&gt;</span></span>
<span class="line"><span>  &lt;ds-flex-item&gt;&lt;ds-placeholder&gt;item&lt;/ds-placeholder&gt;&lt;/ds-flex-item&gt;</span></span>
<span class="line"><span>  &lt;ds-flex-item&gt;&lt;ds-placeholder&gt;item&lt;/ds-placeholder&gt;&lt;/ds-flex-item&gt;</span></span>
<span class="line"><span>&lt;/ds-flex&gt;</span></span></code></pre><div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0;"><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div></div></div><h2 id="column-gutter" tabindex="-1"><a class="header-anchor" href="#column-gutter"><span>Column Gutter</span></a></h2><p>You can set a gutter for each item on the flex component.</p><div class="language- line-numbers-mode" data-highlighter="shiki" data-ext="" data-title="" style="--shiki-light:#383A42;--shiki-dark:#abb2bf;--shiki-light-bg:#FAFAFA;--shiki-dark-bg:#282c34;"><pre class="shiki shiki-themes one-light one-dark-pro vp-code"><code><span class="line"><span>&lt;ds-flex gutter=&quot;small&quot;&gt;</span></span>
<span class="line"><span>  &lt;ds-flex-item&gt;&lt;ds-placeholder&gt;same&lt;/ds-placeholder&gt;&lt;/ds-flex-item&gt;</span></span>
<span class="line"><span>  &lt;ds-flex-item&gt;&lt;ds-placeholder&gt;same&lt;/ds-placeholder&gt;&lt;/ds-flex-item&gt;</span></span>
<span class="line"><span>&lt;/ds-flex&gt;</span></span>
<span class="line"><span>&lt;ds-flex gutter=&quot;base&quot;&gt;</span></span>
<span class="line"><span>  &lt;ds-flex-item&gt;&lt;ds-placeholder&gt;same&lt;/ds-placeholder&gt;&lt;/ds-flex-item&gt;</span></span>
<span class="line"><span>  &lt;ds-flex-item&gt;&lt;ds-placeholder&gt;same&lt;/ds-placeholder&gt;&lt;/ds-flex-item&gt;</span></span>
<span class="line"><span>&lt;/ds-flex&gt;</span></span>
<span class="line"><span>&lt;ds-flex gutter=&quot;large&quot;&gt;</span></span>
<span class="line"><span>  &lt;ds-flex-item&gt;&lt;ds-placeholder&gt;same&lt;/ds-placeholder&gt;&lt;/ds-flex-item&gt;</span></span>
<span class="line"><span>  &lt;ds-flex-item&gt;&lt;ds-placeholder&gt;same&lt;/ds-placeholder&gt;&lt;/ds-flex-item&gt;</span></span>
<span class="line"><span>&lt;/ds-flex&gt;</span></span></code></pre><div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0;"><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div></div></div><h2 id="responsive-breakpoints" tabindex="-1"><a class="header-anchor" href="#responsive-breakpoints"><span>Responsive Breakpoints</span></a></h2><p>Sometimes we need to adjust the layout for different screen sizes. Therefore width, gutter and direction can be set as an object of breakpoints <code>base, xs, sm, md, lg, xl</code></p><div class="language- line-numbers-mode" data-highlighter="shiki" data-ext="" data-title="" style="--shiki-light:#383A42;--shiki-dark:#abb2bf;--shiki-light-bg:#FAFAFA;--shiki-dark-bg:#282c34;"><pre class="shiki shiki-themes one-light one-dark-pro vp-code"><code><span class="line"><span>&lt;ds-flex</span></span>
<span class="line"><span>  :gutter=&quot;{ base: &#39;xx-small&#39;, md: &#39;small&#39; }&quot;</span></span>
<span class="line"><span>  :direction=&quot;{ md: &#39;row-reverse&#39; }&quot;&gt;</span></span>
<span class="line"><span>  &lt;ds-flex-item :width=&quot;{ base: &#39;100%&#39;, sm: 1, md: 1 }&quot;&gt;</span></span>
<span class="line"><span>    &lt;ds-placeholder&gt;1@md&lt;/ds-placeholder&gt;</span></span>
<span class="line"><span>  &lt;/ds-flex-item&gt;</span></span>
<span class="line"><span>  &lt;ds-flex-item :width=&quot;{ base: &#39;100%&#39;, sm: 1, md: 2 }&quot;&gt;</span></span>
<span class="line"><span>    &lt;ds-placeholder&gt;2@md&lt;/ds-placeholder&gt;</span></span>
<span class="line"><span>  &lt;/ds-flex-item&gt;</span></span>
<span class="line"><span>&lt;/ds-flex&gt;</span></span></code></pre><div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0;"><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div></div></div><h2 id="common-patterns" tabindex="-1"><a class="header-anchor" href="#common-patterns"><span>Common Patterns</span></a></h2><p>Fix sidebar flex</p><div class="language- line-numbers-mode" data-highlighter="shiki" data-ext="" data-title="" style="--shiki-light:#383A42;--shiki-dark:#abb2bf;--shiki-light-bg:#FAFAFA;--shiki-dark-bg:#282c34;"><pre class="shiki shiki-themes one-light one-dark-pro vp-code"><code><span class="line"><span>&lt;ds-flex&gt;</span></span>
<span class="line"><span>  &lt;ds-flex-item :width=&quot;{ base: &#39;60px&#39;, md: &#39;200px&#39; }&quot;&gt;</span></span>
<span class="line"><span>    &lt;ds-placeholder&gt;sidebar&lt;/ds-placeholder&gt;</span></span>
<span class="line"><span>  &lt;/ds-flex-item&gt;</span></span>
<span class="line"><span>  &lt;ds-flex-item&gt;</span></span>
<span class="line"><span>    &lt;ds-placeholder&gt;main content&lt;/ds-placeholder&gt;</span></span>
<span class="line"><span>  &lt;/ds-flex-item&gt;</span></span>
<span class="line"><span>&lt;/ds-flex&gt;</span></span></code></pre><div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0;"><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div></div></div><p>Grid list of items</p><div class="language- line-numbers-mode" data-highlighter="shiki" data-ext="" data-title="" style="--shiki-light:#383A42;--shiki-dark:#abb2bf;--shiki-light-bg:#FAFAFA;--shiki-dark-bg:#282c34;"><pre class="shiki shiki-themes one-light one-dark-pro vp-code"><code><span class="line"><span>&lt;ds-flex</span></span>
<span class="line"><span>  :gutter=&quot;{ base: &#39;x-small&#39;, md: &#39;small&#39; }&quot;</span></span>
<span class="line"><span>  :width=&quot;{ base: &#39;100%&#39;, sm: &#39;50%&#39;, lg: &#39;33.333332%&#39; }&quot;&gt;</span></span>
<span class="line"><span>  &lt;ds-flex-item&gt;</span></span>
<span class="line"><span>    &lt;ds-placeholder&gt;item&lt;/ds-placeholder&gt;</span></span>
<span class="line"><span>  &lt;/ds-flex-item&gt;</span></span>
<span class="line"><span>  &lt;ds-flex-item&gt;</span></span>
<span class="line"><span>    &lt;ds-placeholder&gt;item&lt;/ds-placeholder&gt;</span></span>
<span class="line"><span>  &lt;/ds-flex-item&gt;</span></span>
<span class="line"><span>  &lt;ds-flex-item&gt;</span></span>
<span class="line"><span>    &lt;ds-placeholder&gt;item&lt;/ds-placeholder&gt;</span></span>
<span class="line"><span>  &lt;/ds-flex-item&gt;</span></span>
<span class="line"><span>  &lt;ds-flex-item&gt;</span></span>
<span class="line"><span>    &lt;ds-placeholder&gt;item&lt;/ds-placeholder&gt;</span></span>
<span class="line"><span>  &lt;/ds-flex-item&gt;</span></span>
<span class="line"><span>  &lt;ds-flex-item&gt;</span></span>
<span class="line"><span>    &lt;ds-placeholder&gt;item&lt;/ds-placeholder&gt;</span></span>
<span class="line"><span>  &lt;/ds-flex-item&gt;</span></span>
<span class="line"><span>  &lt;ds-flex-item&gt;</span></span>
<span class="line"><span>    &lt;ds-placeholder&gt;item&lt;/ds-placeholder&gt;</span></span>
<span class="line"><span>  &lt;/ds-flex-item&gt;</span></span>
<span class="line"><span>&lt;/ds-flex&gt;</span></span></code></pre><div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0;"><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div></div></div>`,20)]))}const c=e(i,[["render",t],["__file","demo.html.vue"]]),m=JSON.parse('{"path":"/styleguide/src/system/components/layout/Flex/demo.html","title":"","lang":"en-US","frontmatter":{},"headers":[{"level":2,"title":"Item widths","slug":"item-widths","link":"#item-widths","children":[]},{"level":2,"title":"Column Gutter","slug":"column-gutter","link":"#column-gutter","children":[]},{"level":2,"title":"Responsive Breakpoints","slug":"responsive-breakpoints","link":"#responsive-breakpoints","children":[]},{"level":2,"title":"Common Patterns","slug":"common-patterns","link":"#common-patterns","children":[]}],"git":{"createdTime":1775351521000,"updatedTime":1775351521000,"contributors":[{"name":"dependabot[bot]","email":"49699333+dependabot[bot]@users.noreply.github.com","commits":1}]},"readingTime":{"minutes":1.71,"words":514},"filePathRelative":"styleguide/src/system/components/layout/Flex/demo.md","localizedDate":"April 5, 2026","excerpt":"<h2>Item widths</h2>\\n<p>By default each item has the same width.</p>\\n<div class=\\"language- line-numbers-mode\\" data-highlighter=\\"shiki\\" data-ext=\\"\\" data-title=\\"\\" style=\\"--shiki-light:#383A42;--shiki-dark:#abb2bf;--shiki-light-bg:#FAFAFA;--shiki-dark-bg:#282c34\\"><pre class=\\"shiki shiki-themes one-light one-dark-pro vp-code\\"><code><span class=\\"line\\"><span>&lt;ds-flex&gt;</span></span>\\n<span class=\\"line\\"><span>  &lt;ds-flex-item&gt;&lt;ds-placeholder&gt;same&lt;/ds-placeholder&gt;&lt;/ds-flex-item&gt;</span></span>\\n<span class=\\"line\\"><span>  &lt;ds-flex-item&gt;&lt;ds-placeholder&gt;same&lt;/ds-placeholder&gt;&lt;/ds-flex-item&gt;</span></span>\\n<span class=\\"line\\"><span>&lt;/ds-flex&gt;</span></span></code></pre>\\n<div class=\\"line-numbers\\" aria-hidden=\\"true\\" style=\\"counter-reset:line-number 0\\"><div class=\\"line-number\\"></div><div class=\\"line-number\\"></div><div class=\\"line-number\\"></div><div class=\\"line-number\\"></div></div></div>"}');export{c as comp,m as data};
