forked from learningequality/kolibri-design-system
-
Notifications
You must be signed in to change notification settings - Fork 0
/
kgrid.vue
35 lines (27 loc) · 1.03 KB
/
kgrid.vue
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<template>
<DocsPageTemplate apiDocs>
<DocsPageSection title="Overview" anchor="#overview">
<p>
Grid layout with a dynamic number of columns based on the current window width.
</p>
<p>
The grid will have:
</p>
<ul>
<li>4 columns for small windows (<code>width < 840px</code>)</li>
<li>8 columns for medium windows (<code>840px <= width < 960px</code>)</li>
<li>12 columns for large windows (<code>960px <= width</code>)</li>
</ul>
<p>
Use with <DocsLibraryLink component="KGridItem" />, which accept "layout objects" as props. These layout objects can define values for <code>span</code>, <code>alignment</code>, or both.
</p>
<p>
For a grid with a fixed number of columns, see <DocsLibraryLink component="KFixedGrid" /> and <DocsLibraryLink component="KFixedGridItem" />.
</p>
</DocsPageSection>
</DocsPageTemplate>
</template>
<script>
export default {};
</script>
<style lang="scss" scoped></style>