Skip to content

feat(VSkeletonLoader): add types prop & reintroduce table-cell - #23037

Merged
J-Sek merged 3 commits into
devfrom
feat/vskeleton-loader-types
Jul 27, 2026
Merged

feat(VSkeletonLoader): add types prop & reintroduce table-cell#23037
J-Sek merged 3 commits into
devfrom
feat/vskeleton-loader-types

Conversation

@J-Sek

@J-Sek J-Sek commented Jul 26, 2026

Copy link
Copy Markdown
Contributor
  • restore missing table-cell type
  • tweak table-row styles for consistency
  • adapted "table" closer to v2 version
  • cleanup unused styles & variables
  • add types prop to extend built-ins

resolves #20942
resolves #17506

<template>
  <v-app theme="dark">
    <v-container fluid>
      <v-skeleton-loader type="table" />

      <div class="text-caption">3 columns, 4 rows, via types merged under the defaults</div>
      <v-skeleton-loader
        :types="{
          'table-thead': 'heading@3',
          'table-row': 'table-cell@3',
          'table-tbody': 'table-row-divider@4',
        }"
        type="table"
      />

      <v-data-table
        :headers="headers"
        :items="items"
        :items-per-page="6"
        density="comfortable"
      >
        <template #top>
          <div class="d-flex align-center justify-space-between pa-4">
            <div class="text-headline-small">Table heading</div>
            <div>Some description</div>
          </div>
        </template>
      </v-data-table>
    </v-container>
  </v-app>
</template>

<script setup>
  const headers = Array.from({ length: 6 }, (_, c) => ({ title: `Column ${c + 1}`, key: `c${c}` }))
  const items = Array.from({ length: 12 }, (_, r) => Object.fromEntries(
    headers.map((h, c) => [h.key, `Cell ${r + 1}-${c + 1}`])
  ))
</script>

- restore missing table-cell type
- tweak table-row styles for consistency
- cleanup unused styles & variables
@J-Sek J-Sek changed the title Feat/vskeleton loader types feat(VSkeletonLoader): add types prop & restore table-cell type Jul 27, 2026
@J-Sek J-Sek changed the title feat(VSkeletonLoader): add types prop & restore table-cell type feat(VSkeletonLoader): add types prop & reintroduce table-cell Jul 27, 2026
@J-Sek
J-Sek force-pushed the feat/vskeleton-loader-types branch from 943498e to 8074f71 Compare July 27, 2026 11:59
@J-Sek
J-Sek changed the base branch from master to dev July 27, 2026 11:59
@J-Sek
J-Sek merged commit b5d380b into dev Jul 27, 2026
16 checks passed
@J-Sek
J-Sek deleted the feat/vskeleton-loader-types branch July 27, 2026 12:21
J-Sek added a commit that referenced this pull request Jul 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

1 participant