Skip to content

SListItem <s-list-item> ​

किसी ordered या unordered list के भीतर एक item। SListItem Shopify के Polaris <s-list-item> web component का typed Vue 3 wrapper है।

ts
import { SListItem } from 'polaris-vue-elements'

उदाहरण ​

Free shipping over $5030-day returns24/7 customer supportAdd items to your cartReview your orderConfirm and check out
vue
<script setup>
import { SUnorderedList, SOrderedList, SListItem, SStack } from 'polaris-vue-elements'
</script>

<template>
  <SStack direction="inline" gap="large-500" alignItems="start">
    <SUnorderedList>
      <!-- SListItem is the only accepted child of SUnorderedList/SOrderedList. -->
      <SListItem>Free shipping over $50</SListItem>
      <SListItem>30-day returns</SListItem>
      <SListItem>24/7 customer support</SListItem>
    </SUnorderedList>
    <SOrderedList>
      <SListItem>Add items to your cart</SListItem>
      <SListItem>Review your order</SListItem>
      <SListItem>Confirm and check out</SListItem>
    </SOrderedList>
  </SStack>
</template>

Props ​

PropTypeविवरण
childrenanylist item के भीतर दिखाया जाने वाला content, जो ordered या unordered list में एक entry को दर्शाता है।
idstring | undefinedelement के लिए एक unique identifier।

Slots ​

Slotविवरण
defaultlist item के भीतर दिखाया जाने वाला content, जो ordered या unordered list में एक entry को दर्शाता है।

MIT License के तहत जारी। Vue logo Evan You द्वारा, CC BY-NC-SA 4.0।