---
title: Stats with title and description
category: Marketing
paid: false
isActive: true
ltr: {"vue":{"vueCss":[],"vueTail":[{"code":"<template>\n  <section class=\"py-14\">\n    <div class=\"max-w-screen-xl mx-auto px-4 text-gray-600 md:px-8\">\n      <div class=\"max-w-2xl mx-auto text-center\">\n        <h3 class=\"text-gray-800 text-3xl font-semibold sm:text-4xl\">\n          Our customers are always happy\n        </h3>\n        <p class=\"mt-3\">\n          Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi venenatis sollicitudin quam ut tincidunt.\n        </p>\n      </div>\n      <div class=\"mt-12\">\n        <ul class=\"flex flex-col items-center justify-center gap-y-10 sm:flex-row sm:flex-wrap lg:divide-x\">\n          <li\n            v-for=\"(item, index) in stats\"\n            :key=\"index\"\n            class=\"text-center px-12 md:px-16\"\n          >\n            <h4 class=\"text-4xl text-indigo-600 font-semibold\">\n              {{ item.data }}\n            </h4>\n            <p class=\"mt-3 font-medium\">\n              {{ item.title }}\n            </p>\n          </li>\n        </ul>\n      </div>\n    </div>\n  </section>\n</template>\n\n<script>\nexport default {\n  name: 'StatsSection',\n  data() {\n    return {\n      stats: [\n        { data: '35K', title: 'Customers' },\n        { data: '10K+', title: 'Downloads' },\n        { data: '40+', title: 'Countries' },\n        { data: '30M+', title: 'Total revenue' },\n      ],\n    };\n  },\n};\n</script>","label":"App.vue"}]},"html":{"htmlTail":[{"code":"<div x-data=\"{ stats: [\n        { data: '35K', title: 'Customers' },\n        { data: '10K+', title: 'Downloads' },\n        { data: '40+', title: 'Countries' },\n        { data: '30M+', title: 'Total revenue' }\n    ] \n}\">\n\n    <section class=\"py-14\">\n        <div class=\"max-w-screen-xl mx-auto px-4 text-gray-600 md:px-8\">\n            <div class=\"max-w-2xl mx-auto text-center\">\n                <h3 class=\"text-gray-800 text-3xl font-semibold sm:text-4xl\">\n                    Our customers are always happy\n                </h3>\n                <p class=\"mt-3\">\n                    Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi venenatis sollicitudin quam ut tincidunt.\n                </p>\n            </div>\n            <div class=\"mt-12\">\n                <ul class=\"flex flex-col items-center justify-center gap-y-10 sm:flex-row sm:flex-wrap lg:divide-x\">\n                    <template x-for=\"(item, index) in stats\" :key=\"index\">\n                        <li class=\"text-center px-12 md:px-16\">\n                            <h4 class=\"text-4xl text-indigo-600 font-semibold\" x-text=\"item.data\"></h4>\n                            <p class=\"mt-3 font-medium\" x-text=\"item.title\"></p>\n                        </li>\n                    </template>\n                </ul>\n            </div>\n        </div>\n    </section>\n\n</div>\n","label":"index.html"}]},"svelte":{"svelteTail":[{"label":"App.svelte","code":"<script>\n    const stats = [\n        { data: \"35K\", title: \"Customers\" },\n        { data: \"10K+\", title: \"Downloads\" },\n        { data: \"40+\", title: \"Countries\" },\n        { data: \"30M+\", title: \"Total revenue\" },\n    ];\n</script>\n\n<section class=\"py-14\">\n    <div class=\"max-w-screen-xl mx-auto px-4 text-gray-600 md:px-8\">\n        <div class=\"max-w-2xl mx-auto text-center\">\n            <h3 class=\"text-gray-800 text-3xl font-semibold sm:text-4xl\">\n                Our customers are always happy\n            </h3>\n            <p class=\"mt-3\">\n                Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi venenatis sollicitudin quam ut tincidunt.\n            </p>\n        </div>\n        <div class=\"mt-12\">\n            <ul class=\"flex flex-col items-center justify-center gap-y-10 sm:flex-row sm:flex-wrap lg:divide-x\">\n                {#each stats as item (item.title)}\n                <li class=\"text-center px-12 md:px-16\">\n                    <h4 class=\"text-4xl text-indigo-600 font-semibold\">{item.data}</h4>\n                    <p class=\"mt-3 font-medium\">{item.title}</p>\n                </li>\n                {/each}\n            </ul>\n        </div>\n    </div>\n</section>"}]},"react":{"jsxCss":[],"jsxTail":[{"label":"App.jsx","code":"export default () => {\n\n    const stats = [\n        {\n            data: \"35K\",\n            title: \"Customers\"\n        },\n        {\n            data: \"10K+\",\n            title: \"Downloads\"\n        },\n        {\n            data: \"40+\",\n            title: \"Countries\"\n        },\n        {\n            data: \"30M+\",\n            title: \"Total revenue\"\n        },\n    ]\n\n    return (\n        <section className=\"py-14\">\n            <div className=\"max-w-screen-xl mx-auto px-4 text-gray-600 md:px-8\">\n                <div className=\"max-w-2xl mx-auto text-center\">\n                    <h3 className=\"text-gray-800 text-3xl font-semibold sm:text-4xl\">\n                        Our customers are always happy\n                    </h3>\n                    <p className=\"mt-3\">\n                        Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi venenatis sollicitudin quam ut tincidunt.\n                    </p>\n                </div>\n                <div className=\"mt-12\">\n                    <ul className=\"flex flex-col items-center justify-center gap-y-10 sm:flex-row sm:flex-wrap lg:divide-x\">\n                        {\n                            stats.map((item, idx) => (\n                                <li key={idx} className=\"text-center px-12 md:px-16\">\n                                    <h4 className=\"text-4xl text-indigo-600 font-semibold\">{item.data}</h4>\n                                    <p className=\"mt-3 font-medium\">{item.title}</p>\n                                </li>\n                            ))\n                        }\n                    </ul>\n                </div>\n            </div>\n        </section>\n    )\n}"}]},"preview":"function App() {\n\n    const stats = [\n        {\n            data: \"35K\",\n            title: \"Customers\"\n        },\n        {\n            data: \"10K+\",\n            title: \"Downloads\"\n        },\n        {\n            data: \"40+\",\n            title: \"Countries\"\n        },\n        {\n            data: \"30M+\",\n            title: \"Total revenue\"\n        },\n    ]\n\n    return (\n        <section className=\"py-14\">\n            <div className=\"max-w-screen-xl mx-auto px-4 text-gray-600 md:px-8\">\n                <div className=\"max-w-2xl mx-auto text-center\">\n                    <h3 className=\"text-gray-800 text-3xl font-semibold sm:text-4xl\">\n                        Our customers are always happy\n                    </h3>\n                    <p className=\"mt-3\">\n                        Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi venenatis sollicitudin quam ut tincidunt.\n                    </p>\n                </div>\n                <div className=\"mt-12\">\n                    <ul className=\"flex flex-col items-center justify-center gap-y-10 sm:flex-row sm:flex-wrap lg:divide-x\">\n                        {\n                            stats.map((item, idx) => (\n                                <li key={idx} className=\"text-center px-12 md:px-16\">\n                                    <h4 className=\"text-4xl text-indigo-600 font-semibold\">{item.data}</h4>\n                                    <p className=\"mt-3 font-medium\">{item.title}</p>\n                                </li>\n                            ))\n                        }\n                    </ul>\n                </div>\n            </div>\n        </section>\n    )\n}"}
slug: /stats
id: 7af453d8-d3cc-4523-b2c5-5081ec2639f3
created_at: 1671314853851
---

<FUIStatsWithTitleAndDescription />