Zurück zum Ranking

creativetimofficial/david-ai

HTMLcreative-tim.com/david-ui

David AI is a free and open-source collection of customizable, production-ready UI components built with Tailwind CSS.

tailwindcsskitsdashboardtailwindcss-starter-kittailwindcss-starter-projecttailwindcss-extensionangular-landing-pagedynamic-componentstailwind-starter-kittailwind-csstailwind-admintailwind-css-template
Sterne-Wachstum
Sterne
6.1k
Forks
927
Wochenwachstum
Issues
1
2k4k6k
Dez. 2019Feb. 2022Mai 2024Juli 2026
README

[!NOTE] This repository was previously named tailwind-starter-kit and has been renamed to david-ai to better reflect its purpose and direction.

David UI - Free Tailwind CSS Components Library

David UI is a free and open-source collection of customizable, production-ready UI components built with Tailwind CSS. Designed to be developer-friendly and performance-focused, David UI streamlines the creation of modern, visually appealing interfaces, helping you deliver high-quality user experiences faster.

David UI Thumb

npm version npm downloads

Table of Contents

Getting Started

Learn how to use david-ai components to quickly and easily create elegant and flexible pages using Tailwind CSS.

david-ai is working with Tailwind CSS classes and you need to have Tailwind CSS installed on your project - Tailwind CSS Installation.

Using with CDN

You can include david-ai via a CDN and initialize alerts globally in the browser. Add the following script to your HTML file:

<script
  src="https://cdn.jsdelivr.net/gh/creativetimofficial/david-ai@1.0.6/packages/dist/david-ai.min.js"
  defer
></script>

Basic Usage NPM

npm i david-ai

After installing, you can use the components in your project across different frameworks:

import { initAlert } from "david-ai";

// Initialize alerts
initAlert();

Using with Global Access

If you prefer, you can use the DavidAI global object instead of directly importing initAlert:

import * as DavidAI from "david-ai";

// Initialize alerts
DavidAI.initAlert();

TypeScript

David AI components can be used in two ways - through simple ESM imports or programmatically with TypeScript support. Here's how to use both approaches:

Simple ESM Import

The quickest way to use components is through direct ESM imports:

import { initAlert } from "david-ai";

// Initialize alerts
initAlert();

Programmatic Usage with TypeScript

For more control and type safety, you can use the programmatic approach with full TypeScript support:

This programmatic approach provides:

  • Full TypeScript support
  • Fine-grained control over component behavior
  • Access to component instance methods
  • Proper cleanup on unmount
import { Accordion } from "david-ai";
import type { AccordionConfig, IAccordion } from "david-ai";

document.addEventListener("DOMContentLoaded", () => {
  const container = document.getElementById("accordion-container");

  if (container) {
    const config: AccordionConfig = {
      exclusive: true,
      allOpen: false,
    };

    const accordion: IAccordion = new Accordion(container, config);

    // Handle external button controls
    const showAllButton = document.getElementById("show-all");
    const hideAllButton = document.getElementById("hide-all");
    const toggleFirstButton = document.getElementById("toggle-first");

    showAllButton?.addEventListener("click", () => {
      accordion.showAll();
    });

    hideAllButton?.addEventListener("click", () => {
      accordion.hideAll();
    });

    toggleFirstButton?.addEventListener("click", () => {
      const firstButton = document.getElementById("button-1") as HTMLElement;
      if (firstButton) {
        accordion.toggle(firstButton);
      }
    });

    // Cleanup on unmount
    window.addEventListener("unload", () => {
      accordion.cleanup();
    });
  }
});

For detailed usage of each component, check out their respective documentation:

Congratulations 🥳, you did it, now you're ready to use david-ai.

Documentation

David UI’s documentation includes code snippets, previews, and detailed usage instructions for each component, ensuring a smooth implementation process.

Visit the David UI Docs to explore the entire library.

Explore Components

accordion alert avatar
Accordion Alert Avatar
typography breadcrumbs button
Badge Breadcrumbs Button
select card checkbox
Button Group Card Checkbox
chip tooltip menu
Chip Collapse Dropdown
typography icon-button typography
Footer Icon Button Image
input tooltip dialog
Input List Modal
navbar pagination popover
Navbar Pagination Popover
progress-bar radio-button tooltip
Progress Bar Radio Button Rating Bar
tooltip tooltip tooltip
Sidebar Spinner Stepper
switch typography tabs
Switch Table Tabs
textarea tooltip typography
Textarea Tooltip Typography
tooltip tooltip
Timeline Video

Community

  • We're excited to see the community adopt David AI, raise issues, and provide feedback.
  • Whether it's a feature request, bug report, or a project to showcase, please get involved!

License

Copyright (c) 2020-2025 Creative Tim

David UI is distributed under the MIT License, providing freedom and flexibility for all projects.

Older Version

You can find the older version of the David UI in the tailwind-starter-kit branch.

Contribute & Feedback

We welcome contributions and feedback! If you have suggestions, encounter issues, or want to propose new components, feel free to open an issue or submit a pull request on our repository. Your input helps make David UI better for everyone.


Build better, faster, and smarter with David UI. Explore the documentation and start leveraging our components to deliver polished, user-friendly interfaces with ease.

Ähnliche Repositories
shadcn-ui/ui

A set of beautifully-designed, accessible components and a code distribution platform. Works with your favorite frameworks. Open Source. Open Code.

TypeScriptnpmMIT Licensecomponentsnextjs
ui.shadcn.com
119.4k9.5k
nextlevelbuilder/ui-ux-pro-max-skill

An AI SKILL that provide design intelligence for building professional UI/UX multiple platforms

PythonPyPIMIT Licenseai-skillsantigravity
uupm.cc
108.2k11.5k
tailwindlabs/tailwindcss

A utility-first CSS framework for rapid UI development.

TypeScriptnpmMIT Licensetailwindcsscss
tailwindcss.com
96k5.4k
calcom/cal.diy

Scheduling infrastructure for absolutely everyone.

TypeScriptnpmMIT Licenseopen-sourcetypescript
cal.diy
46.7k14.5k
DavidHDev/react-bits

An open source collection of animated, interactive & fully customizable React components for building memorable websites.

JavaScriptnpmOtheranimationscomponents
reactbits.dev
43.9k2.1k
saadeghi/daisyui

🌼 🌼 🌼 🌼 🌼  The most popular, free and open-source Tailwind CSS component library

SvelteMIT Licensetailwind-cssui-library
daisyui.com
41.7k1.7k
amruthpillai/reactive-resume

A one-of-a-kind resume builder that keeps your privacy in mind. Completely secure, customizable, portable, open-source and free forever. Try it out today!

TypeScriptnpmMIT Licenseresumeresume-builder
rxresu.me
39.7k4.5k
drawdb-io/drawdb

Free, simple, and intuitive online database diagram editor and SQL generator.

JavaScriptnpmGNU Affero General Public License v3.0database-schemaeditor
drawdb.app
38.1k3.1k
calcom/cal.com

Scheduling infrastructure for absolutely everyone.

TypeScriptnpmOtheropen-sourcetypescript
cal.com
34.4k8.8k
AmruthPillai/Reactive-Resume

A one-of-a-kind resume builder that keeps your privacy in mind. Completely secure, customizable, portable, open-source and free forever. Try it out today!

TypeScriptnpmMIT Licenseresumeresume-builder
rxresu.me
29.9k3k
slymnoyann/hey-1

Hey is a decentralized and permissionless social media app built with Lens Protocol 🌿

TypeScriptnpmGNU General Public License v3.0web3blockchain
hey.xyz
29.4k1.8k
JCodesMore/ai-website-cloner-template

Clone any website with one command using AI coding agents

TypeScriptnpmMIT Licenseaiai-agents
dsc.gg/jcodesmore
29.1k4.2k