AutoGrid (extends KompElement)
Starts with max number of columns given content, and reduces column count until no cells overflow
Example
Syntax
<auto-grid>
<div>1</div>
<div>2</div>
<div>3</div>
</auto-grid>
Options
types | description | default | options | |
---|---|---|---|---|
content
|
String, HTMLElement, Array, Object |
content to append to element. Passed to Dolla's |
||
columnWidth
|
width of each column |
minmax(max-content, 1fr) | ||
method
|
defines how to remove columnWidths to make columns fit |
pop | pop, shift |