Ir para o conteúdo
uiify

Item

A list row that pairs leading media and content with metadata and an action.

Navegadores
Chrome 123+Firefox 121+Safari 17.5+
Nível
0
Limite de layout forçado
0 ms
Limite do axe
0
Compatível com SSR
Sim
Contrato publicado
Ambiente de teste

Experimentar

Item

  • Mina Chen
    Design · Updated today
  • Sam Rivera
    Engineering · Updated yesterday

Exemplos

Recent projects

Omit media and actions when a plain project name and its metadata are enough; use links only when a real destination exists.

  • Project Atlas
    Private project · Updated 2 hours ago
  • Q3 launch
    Shared with 4 people · Updated yesterday
import { Item, ItemContent, ItemMetadata } from "@gunkin/uiify";

export default function Example() {
  return (
    <ul>
      <Item>
        <ItemContent>Project Atlas</ItemContent>
        <ItemMetadata>Private project · Updated 2 hours ago</ItemMetadata>
      </Item>
      <Item>
        <ItemContent>Q3 launch</ItemContent>
        <ItemMetadata>Shared with 4 people · Updated yesterday</ItemMetadata>
      </Item>
    </ul>
  );
}

API

Item

PropTipoPadrãoDescrição
childrenReactNode—Media, primary content, metadata, and optional actions.
className / style / ref / native li propsnative li props—Native list-item props, styles, events, and ref are forwarded.
renderReactElement | ((props, state) => ReactElement)—Substitua o elemento renderizado preservando comportamento e conexões de acessibilidade.

ItemMedia

PropTipoPadrãoDescrição
childrenReactNode—Content for this presentational item part.
renderReactElement | ((props, state) => ReactElement)—Substitua o elemento renderizado preservando comportamento e conexões de acessibilidade.

ItemContent

PropTipoPadrãoDescrição
childrenReactNode—Content for this presentational item part.
renderReactElement | ((props, state) => ReactElement)—Substitua o elemento renderizado preservando comportamento e conexões de acessibilidade.

ItemMetadata

PropTipoPadrãoDescrição
childrenReactNode—Content for this presentational item part.
renderReactElement | ((props, state) => ReactElement)—Substitua o elemento renderizado preservando comportamento e conexões de acessibilidade.

ItemActions

PropTipoPadrãoDescrição
childrenReactNode—Content for this presentational item part.
renderReactElement | ((props, state) => ReactElement)—Substitua o elemento renderizado preservando comportamento e conexões de acessibilidade.

Teclado

TeclaAção

Acessibilidade

Item renders a list item; place it inside a native ul or ol. Parts are presentational. Keep links and buttons as separate controls; do not make the entire row one link or button. For ItemMedia, choose meaningful alt text or an empty alt when the media is decorative.

Pontos de integração de estilos

data-uiify-itemdata-uiify-item-mediadata-uiify-item-contentdata-uiify-item-metadatadata-uiify-item-actionsdata-part
Esta página foi traduzida automaticamente e ainda não foi revisada.