Skip to content

DatasetCard

DatasetCard summarizes a dataset's task, scale, split, source, and license. Use it when introducing benchmarks or explaining experimental setup.

DatasetCard example

Basic Usage

markdown
<DatasetCard
  name="AcademicBench"
  description="Curated benchmark for efficient scientific model adaptation."
  task="Classification"
  samples="12k"
  features="128"
  split="70 / 15 / 15"
  source="Internal benchmark"
  license="Research use"
/>

With Notes

markdown
<DatasetCard name="RobustBench-Shift" task="Domain shift" samples="8.4k" split="5 folds">
All examples use the same preprocessing pipeline as the main benchmark.
</DatasetCard>

Props

PropTypeDefaultDescription
namestringrequiredDataset name
labelstring'Dataset'Small label above the name
descriptionstring-Short dataset description
taskstring-Dataset task or modality
samplesstring | number-Sample count or scale marker
featuresstring | number-Feature, modality, or field count
splitstring-Train/validation/test split
sourcestring-Source benchmark or repository
licensestring-License or access constraint
variantstring'primary'primary, success, warning, danger, or info
compactbooleanfalseReduce spacing