Enhance Layout Elements
A collection of custom elements for implementing layout patterns.
Usage
- Install the package:
npm i @enhance/layout-elements
- Expose the element you'd like to use:
// app/elements/layout-collection.mjs import { collection } from '@enhance/layout-elements' export default collection
- Use the element in your app:
// app/pages/index.html <layout-collection> <img src='…' alt='…' /> <img src='…' alt='…' /> <img src='…' alt='…' /> </layout-collection>
Individual element descriptions and links to their docs follow below.
Elements
Collection
A single file component for creating a horizontally scrollable collection of items, with optional scroll snapping.
Sidebar
A single file component for creating an adaptive sidebar layout.