UIPackage
Menu

Framework

Change language

Boilerplate repo

List

listui

List and Item row primitives with List, ListItem, ListItemMedia, ListItemContent, ListItemTitle, ListItemDescription, ListItemActions, and ListSubheader for structured rows, settings lists, and feeds.

Also available for React ->

Installation

$npx shadcn-vue@latest add https://uipkge.dev/r/vue/list.json
Named registry:npx shadcn-vue@latest add @uipkge/listInstalls to:app/components/ui/list/

Examples

Loading interactive previews…

Props

NameType / ValuesDefaultRequired
classHTMLAttributes['class']optional
as
'ul''ol''div'
optional

Files installed (9)

  • app/components/ui/list/List.vue0.4 kB
    <script setup lang="ts">
    import type { HTMLAttributes } from 'vue'
    import { cn } from '@/lib/utils'
    
    const props = defineProps<{
      class?: HTMLAttributes['class']
      as?: 'ul' | 'ol' | 'div'
    }>()
    </script>
    
    <template>
      <component
        :is="props.as ?? 'ul'"
        data-uipkge
        data-slot="list"
        :class="cn('list-none space-y-1', props.class)"
        v-bind="$attrs"
      >
        <slot />
      </component>
    </template>
    
  • app/components/ui/list/ListItem.vue1.6 kB
  • app/components/ui/list/ListItemMedia.vue0.4 kB
  • app/components/ui/list/ListItemContent.vue0.4 kB
  • app/components/ui/list/ListItemTitle.vue0.4 kB
  • app/components/ui/list/ListItemDescription.vue0.4 kB
  • app/components/ui/list/ListItemActions.vue0.4 kB
  • app/components/ui/list/ListSubheader.vue0.5 kB
  • app/components/ui/list/index.ts0.5 kB

Raw manifest:https://uipkge.dev/r/vue/list.json