1.0.0 • Published 2 years ago
@ks-web-components/ks-grid-item v1.0.0
ks-grid-item
This component should be used with Grid Component. It allows users to render content in a fixed grid by specifying coordinates and sizes.
Usage
npm install @ks-web-components/ks-grid-item
Live Example
Attributes
Property | Attribute | Type | Default | Description |
---|---|---|---|---|
w | w | number | 2 | The number of grid columns to span across |
h | h | number | 2 | The number of grid rows to span across |
x | x | number | The x position in columns | |
y | y | number | The y position in rows |
Slots
Name | Description |
---|---|
default slot | The content of the component |
Events
Name | type | Description |
---|---|---|
onSizeChange | Event | The w , h , x or y prop of the element have changed |