@enhance/layout-elements
v0.0.1-alpha.8
Published
A collection of custom elements for implementing layout patterns in Enhance
Downloads
25
Readme
Enhance Layout Elements
A collection of custom elements for implementing layout patterns.
⚠️ Currently under active development and not recommended for use in production.
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.