--- page: 'reference-detail' title: 'ons-list' name: 'ons-list' collection: 'components' reference: true docCategory: 'js' componentCategory: list ---
Component to define a list, and the container for ons-list-item(s).
<ons-list>
<ons-list-header>Header Text</ons-list-header>
<ons-list-item>Item</ons-list-item>
<ons-list-item>Item</ons-list-item>
</ons-list>
See the Pen Alert, confirm and prompt dialogs by Onsen & Monaca (@onsen) on CodePen.
Name | Type Default Value |
Description |
---|---|---|
modifier | String | The appearance of the list. Optional |
Modifier | Description |
---|---|
inset | Inset list that doesn't cover the whole width of the parent. |
noborder | A list with no borders at the top and bottom. |