Source List

Uma lista de fontes com título, em chips ou linhas, com um botão “mostrar mais”. Ou recolhidas num só chip com marcas sobrepostas e uma contagem que abre a lista.

Disponível em
  • Angular: disponível
  • Vue: disponível
  • React: disponível
  • React Native: ainda não disponível

Uso

Sources
Harbour Lane kickoff · Mar 3Pricing review · Mar 5Team retro · Mar 9
Sources5
  • Harbour Lane kickoffMar 3
  • Pricing reviewMar 5
  • Team retroMar 9

Importação

ts
import {
  SoneSourceListComponent,
  SoneSourceListItemDirective,
  SoneSourceListTriggerComponent,
} from "@surface-one/angular/source-list";

Referência da API

SoneSourceListComponentComponente

Seletor
sone-source-list
Inputs
NomeTipo Padrão
itemsreadonly T[][]
trackByobrigatório(item: T) => string—
variantSourceListVariant"row"
sizeSourceListSize"default"
labelstring""
ariaLabelstring | nullnull
showCountbooleanfalse
limitnumber | nullnull
columns1 | 21
listboolean | nullnull

SoneSourceListItemDirectiveDiretiva

Seletor
ng-template[soneSourceListItem]
Inputs
NomeTipo Padrão
soneSourceListItemOfreadonly T[] | null | undefinedundefined

SoneSourceListTriggerComponentComponente

`button[soneSourceListTrigger]` — the sources behind an answer folded into one small chip: up to three stacked marks (projected: favicons, `<sone-avatar>`s, marks) and a count (“6 sources”). It is a plain button: open the full `<sone-source-list>` from it (a popover, a sheet or a disclosure) and wire `aria-expanded` / `aria-controls` for what it opens.

Seletor
button[soneSourceListTrigger]
Inputs
NomeTipo Padrão
count

How many sources there are (the count on the chip).

number0