Item
<zn-item>
ZnItem
Used for listing items in a description list. Caption on the right, content on the left.
<zn-sp divide no-gap> <zn-item caption="Full name" description="this is description" edit-on-hover> <zn-inline-edit name="name" value="EN" options="{"":"-","EN":"English","IT":"Italian","FR":"French","DE":"German","ES":"Spanish","PT":"Portuguese","AB":"Abkhazian","OM":"Afan\/Oromoor\/Oriya","AA":"Afar","AF":"Afrikaans","SQ":"Albanian","AM":"Amharic","AR":"Arabic","HY":"Armenian","AS":"Assamese","AY":"Aymara","AZ":"Azerbaijani","BA":"Bashkir","EU":"Basque","BN":"Bengali\/Bangla","DZ":"Bhutani","BH":"Bihari","BI":"Bislama","BR":"Breton","BG":"Bulgarian","MY":"Burmese","BE":"Byelorussian","KM":"Cambodian","CA":"Catalan","ZH":"Chinese","CO":"Corsican","HR":"Croatian","CS":"Czech","DA":"Danish","NL":"Dutch","EO":"Esperanto","ET":"Estonian","FO":"Faeroese","FJ":"Fiji","FI":"Finnish","FY":"Frisian","GL":"Galician","KA":"Georgian","EL":"Greek","KL":"Greenlandic","GN":"Guarani","GU":"Gujarati","HA":"Hausa","HE":"Hebrew","HI":"Hindi","HU":"Hungarian","IS":"Icelandic","ID":"Indonesian","IA":"Interlingua","IE":"Interlingue","IK":"Inupiak","GA":"Irish","JA":"Japanese","JV":"Javanese","KN":"Kannada","KS":"Kashmiri","KK":"Kazakh","RW":"Kinyarwanda","KY":"Kirghiz","RN":"Kirundi","KO":"Korean","KU":"Kurdish","LO":"Laothian","LA":"Latin","LV":"Latvian\/Lettish","LN":"Lingala","LT":"Lithuanian","MK":"Macedonian","MG":"Malagasy","MS":"Malay","ML":"Malayalam","MT":"Maltese","MI":"Maori","MR":"Marathi","MO":"Moldavian","MN":"Mongolian","NA":"Nauru","NB":"Norwegian Bokm\u00e5l","NE":"Nepali","NO":"Norwegian","OC":"Occitan","PS":"Pashto\/Pushto","FA":"Persian","PL":"Polish","PA":"Punjabi","QU":"Quechua","RM":"Rhaeto-Romance","RO":"Romanian","RU":"Russian","SM":"Samoan","SG":"Sangro","SA":"Sanskrit","GD":"Scots\/Gaelic","SR":"Serbian","SH":"Serbo-Croatian","ST":"Sesotho","TN":"Setswana","SN":"Shona","SD":"Sindhi","SE":"Northern Sami","SI":"Singhalese","SS":"Siswati","SK":"Slovak","SL":"Slovenian","SO":"Somali","SU":"Sundanese","SW":"Swahili","SV":"Swedish","TL":"Tagalog","TG":"Tajik","TA":"Tamil","TT":"Tatar","TE":"Tegulu","TH":"Thai","BO":"Tibetan","TI":"Tigrinya","TO":"Tonga","TS":"Tsonga","TR":"Turkish","TK":"Turkmen","TW":"Twi","UK":"Ukrainian","UR":"Urdu","UZ":"Uzbek","VI":"Vietnamese","VO":"Volapuk","CY":"Welsh","WO":"Wolof","XH":"Xhosa","JI":"Yiddish","YO":"Yoruba","ZU":"Zulu"}"></zn-inline-edit> </zn-item> <zn-item caption="Full name"> Margot Foster </zn-item> <zn-item caption="Full name"> margot.foster@example.com </zn-item> <zn-item caption="Full name"> lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. </zn-item> </zn-sp>
Examples
Lots of Content
<zn-item caption="Full name"> lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. </zn-item>
Right Aligned Content
Use align-end to right align the content value.
<zn-sp divide no-gap> <zn-item caption="Subtotal" align-end>$120.00</zn-item> <zn-item caption="Tax" align-end>$24.00</zn-item> <zn-item caption="Total" align-end>$144.00</zn-item> </zn-sp>
Facts
Use fact for a grid of headline attributes: a small muted caption above the value. Lay them out
with zn-cols.
<zn-cols layout="1,1,1" basis="150"> <zn-item fact caption="Sender">noreply@example.com</zn-item> <zn-item fact caption="Service">Fortifi (Email)</zn-item> <zn-item fact caption="List type">Customer</zn-item> <zn-item fact caption="Created">17 Sep 2026</zn-item> </zn-cols>
Key–Value
Use key-value for the rows of a record’s details: a small muted caption beside a right-aligned
value on a compact row. Add mono to show identifiers in the monospace font, and
truncate to keep a long value on one line with an ellipsis — pair it with a copy button so the
full value is still available. Put the rows in a flush, divided zn-sp inside a flush panel so
the dividers run edge to edge.
<zn-panel caption="Details" flush> <zn-sp flush divide no-gap> <zn-item key-value mono caption="Charge ID"> fVeWtIUlss82t3RvFxD <zn-copy-button slot="actions" value="fVeWtIUlss82t3RvFxD" size="16"></zn-copy-button> </zn-item> <zn-item key-value mono truncate caption="Legacy ID"> XX:d3efbe77-d20c-11f1-b5b2-726fd569efa7:1 <zn-copy-button slot="actions" value="XX:d3efbe77-d20c-11f1-b5b2-726fd569efa7:1" size="16"></zn-copy-button> </zn-item> <zn-item key-value caption="Status"><zn-badge type="success" dot>Active</zn-badge></zn-item> </zn-sp> </zn-panel>
Icons
<zn-item caption="Full name" icon="person" description="this is description"> This is the content </zn-item> <zn-cols layout="1, 1"> <zn-item inline icon="person"> <div>First Name</div> <div>Second Name</div> </zn-item> <zn-item inline icon="person">This is the content</zn-item> </zn-cols>
Help Tooltip
Use the help-tooltip attribute to display an info icon with a tooltip next to the caption.
<zn-sp divide no-gap> <zn-item caption="Account ID" help-tooltip="The unique identifier for this account"> ACC-12345 </zn-item> <zn-item caption="MRR" help-tooltip="Monthly Recurring Revenue, calculated from active subscriptions"> $1,250.00 </zn-item> <zn-item caption="Status"> Active </zn-item> </zn-sp>
Multiple Actions
Example of multiple actions in a description item.
<zn-item caption="Address"> <div><strong>Company</strong> Example here </div> <div><strong>Line 1</strong> Example here </div> <div><strong>Line 2</strong> Example here </div> <div><strong>Line 3</strong> Example here </div> <div><strong>Town</strong> Example here </div> <div><strong>County</strong> Example here </div> <div><strong>Postal Code</strong> Example here </div> <div><strong>Country</strong> Example here </div> <zn-button id="address-modal" slot="actions" color="secondary">Edit</zn-button> <zn-button id="address-modal" slot="actions" color="secondary">Edit</zn-button> </zn-item>
Slots
| Name | Description |
|---|---|
| (default) | The default slot. Can either be slotted or use the value attribute |
actions
|
Used for adding actions to a zn-item. |
Properties
| Name | Description | Reflects | Type | Default |
|---|---|---|---|---|
fact
|
A fact in a grid of headline attributes: a small muted caption above the value, without padding. |
|
boolean
|
- |
keyValue
key-value
|
A row in a key–value list: a small muted caption beside a right-aligned value, on a compact row. |
|
boolean
|
- |
mono
|
Shows the value in the monospace font, for identifiers and codes. |
|
boolean
|
- |
truncate
|
Keeps the value on one line, cutting overflow with an ellipsis. |
|
boolean
|
- |
updateComplete |
A read-only promise that resolves when the component has finished updating. |
Parts
| Name | Description |
|---|---|
base |
The items base wrapper |
caption |
The items caption |
icon |
The items icon |
Dependencies
This component automatically imports the following dependencies.
<zn-icon><zn-tooltip>