Skip to content
On this page

NcIconSvgWrapper

Props

Prop nameDescriptionTypeValuesDefault
svgstring-''
titlestring-''

NcListItemIcon

Props

Prop nameDescriptionTypeValuesDefault
titleDefault first line textstring-
subtitleSecondary optional line
Only visible on size of 32 and above
string-''
iconIcon class to be displayed at the end of the componentstring-''
iconSvgSVG icon to be displayed at the end of the componentstring-''
iconTitleDescriptive title for the iconstring-''
searchSearch within the highlight of title/subtitlestring-''
avatarSizeSet a size in px that will define the avatar height/width
and therefore, the height of the component
number-defaultSize
noMarginDisable the margins of this component.
Useful for integration in Multiselect for example
boolean-false
displayNameSee the Avatar displayName prop
Fallback to title
string-null
isNoUserSee the Avatar isNoUser prop
Enable/disable the UserStatus fetching
boolean-false
idUnique list item IDstring-null

Slots

NameDescriptionBindings
defaultuse this slot to add a custom icon or actions

This is used to display a avatar-title/subtitle + icon layout

It might be used for list rendering or within the multiselect for example

Note: Any binding will be forwarded on the Avatar component root

vue
<NcListItemIcon title="User 1" />
<NcListItemIcon
  title="User 1"
  subtitle="Hidden subtitle because size is too small"
  :avatar-size="24"
/>
vue
<NcListItemIcon title="User 1" :avatar-size="44" icon="icon-user" />

With icon

vue
<NcListItemIcon
  title="Group 1"
  subtitle="13 members"
  icon="icon-group"
  :is-no-user="true"
/>

Searching

vue
<NcListItemIcon
  title="Test user 1"
  subtitle="callmetest@domain.com"
  search="test"
/>
<NcListItemIcon
  title="Testing admin"
  subtitle="testme@example.com"
  search="test"
/>
<NcListItemIcon
  title="Test group 2"
  subtitle="loremipsum@domain.com"
  icon="icon-group"
  :is-no-user="true"
  search="test"
/>

With actions

vue
<NcListItemIcon title="Test user 1" subtitle="callmetest@domain.com">
	<NcActions>
		<NcActionButton icon="icon-edit" @click="alert('Edit')">Edit</NcActionButton>
		<NcActionButton icon="icon-delete" @click="alert('Delete')">Delete</NcActionButton>
	</NcActions>
</NcListItemIcon>