<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Forem: Themesberg</title>
    <description>The latest articles on Forem by Themesberg (@themesberg).</description>
    <link>https://forem.com/themesberg</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Forganization%2Fprofile_image%2F1549%2Fabe591bf-6792-4a2d-8ebb-d0b42f4ea9d9.png</url>
      <title>Forem: Themesberg</title>
      <link>https://forem.com/themesberg</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/themesberg"/>
    <language>en</language>
    <item>
      <title>Build apps for ChatGPT, Claude, and Gemini using MCP UI components from Flowbite</title>
      <dc:creator>Zoltán Szőgyényi</dc:creator>
      <pubDate>Fri, 06 Feb 2026 14:07:46 +0000</pubDate>
      <link>https://forem.com/themesberg/build-apps-for-chatgpt-claude-and-gemini-using-mcp-ui-components-from-flowbite-316b</link>
      <guid>https://forem.com/themesberg/build-apps-for-chatgpt-claude-and-gemini-using-mcp-ui-components-from-flowbite-316b</guid>
      <description>&lt;p&gt;MCP UI is the standard SDK that you can use to deliver MCP apps which can be used as applications for ChatGPT, Gemini, Claude, and other MCP clients like Cursor or Windsurf. &lt;a href="https://modelcontextprotocol.io/docs/getting-started/intro" rel="noopener noreferrer"&gt;Model Context Protocol&lt;/a&gt; (MCP) is part of the Agentic AI Foundation donated by Anthropic in 2025 and it is one of the fastest growing open-source projects in the AI category with over 100 million monthly SDK downloads.&lt;/p&gt;

&lt;p&gt;

&lt;iframe class="tweet-embed" id="tweet-2019769870036980057-385" src="https://platform.twitter.com/embed/Tweet.html?id=2019769870036980057"&gt;
&lt;/iframe&gt;

  // Detect dark theme
  var iframe = document.getElementById('tweet-2019769870036980057-385');
  if (document.body.className.includes('dark-theme')) {
    iframe.src = "https://platform.twitter.com/embed/Tweet.html?id=2019769870036980057&amp;amp;theme=dark"
  }





&lt;/p&gt;

&lt;p&gt;In this guide you will learn how to create an MCP app using Flowbite and Skybridge and start developing application for ChatGPT, Claude, Gemini and any other AI client that uses the MCP standard. After setting up the project you'll be able to integrate any UI component and theme from the Flowbite documentation inside your MCP application.&lt;/p&gt;

&lt;p&gt;We decided to use the &lt;a href="https://github.com/alpic-ai/skybridge" rel="noopener noreferrer"&gt;Skybridge&lt;/a&gt; framework to build MCP apps and we are using the UI components from &lt;a href="https://flowbite.com/" rel="noopener noreferrer"&gt;Flowbite&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Create new MCP app
&lt;/h2&gt;

&lt;p&gt;The first step is to create a new MCP application and start developing locally:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Download or clone the &lt;a href="https://github.com/themesberg/mcp-ui-starter/" rel="noopener noreferrer"&gt;MCP UI Starter&lt;/a&gt; repository:
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;git clone https://github.com/themesberg/mcp-ui-starter.git
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;Install dependencies using NPM, PNPM, Yarn or Bun:
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;npm install
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;Run a local development server:
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;npm run dev --use-forwarded-host
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This command will run a local server on &lt;code&gt;http://localhost:3000&lt;/code&gt; and will create the following:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;the main MCP server on the &lt;code&gt;/mcp&lt;/code&gt; endpoint&lt;/li&gt;
&lt;li&gt;a collection of widgets built with Flowbite and React used as tools&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Connect with NGROK
&lt;/h2&gt;

&lt;p&gt;In order to expose the server to AI clients such as ChatGPT, Gemini or Claude we need to host the MCP server.&lt;/p&gt;

&lt;p&gt;Install &lt;code&gt;ngrok&lt;/code&gt; on your computer using Homebrew and run the following command:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;ngrok http 3000
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This will host the MCP server on a URL similar to this one:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;# this is just an example
https://3785c5ddc4b6.ngrok-free.app/mcp
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You will now be able to use this URL to create an application for ChatGPT, Claude, Gemini, and for any MCP clients.&lt;/p&gt;

&lt;p&gt;Don't forget to add the &lt;code&gt;/mcp&lt;/code&gt; endpoint to the URL generated by NGROK.&lt;/p&gt;

&lt;h2&gt;
  
  
  Install on AI providers
&lt;/h2&gt;

&lt;p&gt;Use the following guides to connect your MCP app to major AI providers like ChatGPT, Claude, and Gemini.&lt;/p&gt;

&lt;h3&gt;
  
  
  ChatGPT apps
&lt;/h3&gt;

&lt;p&gt;Make sure that you have a paid plan to create an application on ChatGPT.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Go to Settings &amp;gt; Connectors&lt;/li&gt;
&lt;li&gt;Scroll down and click on "Advanced Settings"&lt;/li&gt;
&lt;li&gt;Enable Developer mode&lt;/li&gt;
&lt;li&gt;Go back to the Settings &amp;gt; Connectors page, and click on "Create in the Browser Connectors"&lt;/li&gt;
&lt;li&gt;Add a custom connector with the MCP Server URL: &lt;code&gt;[NGROK_FORWARDING_URL]/mcp&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Click on "Create to add the MCP server as a Connector"&lt;/li&gt;
&lt;li&gt;To use your connector in the chat, click "+"" then "More" and select it.&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  Claude Web
&lt;/h3&gt;

&lt;p&gt;Make sure that you have a paid plan to create an application on Claude.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Go to Settings &amp;gt; Connectors&lt;/li&gt;
&lt;li&gt;Find the "Connectors" section&lt;/li&gt;
&lt;li&gt;Click on "Add custom connector" at the bottom of the section&lt;/li&gt;
&lt;li&gt;Add your connector's remote MCP server URL: [NGROK_FORWARDING_URL]/mcp&lt;/li&gt;
&lt;li&gt;Finish configuring your connector and click "Add"&lt;/li&gt;
&lt;li&gt;To enable connectors, use the "Search and tools button" on the lower left of the chat interface.&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  Gemini CLI
&lt;/h3&gt;

&lt;p&gt;Run the following command in your terminal:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;gemini mcp add --transport http &amp;lt;server-name&amp;gt; "[NGROK_FORWARDING_URL]/mcp"
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Use &lt;code&gt;/mcp&lt;/code&gt; in the Gemini CLI terminal to view your recently added MCP server status and discovered tools.&lt;/p&gt;

&lt;h3&gt;
  
  
  Cursor
&lt;/h3&gt;

&lt;p&gt;Add your MCP server to Cursor by opening the &lt;code&gt;mcp.json&lt;/code&gt; file and configure it using &lt;code&gt;mcpServers&lt;/code&gt;.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;{
  "mcpServers": {
    "&amp;lt;server-name&amp;gt;": {
      "type": "http",
      "url": "[NGROK_FORWARDING_URL]/mcp"
    }
  }
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  VS Code
&lt;/h3&gt;

&lt;p&gt;To add your MCP server to VS Code you need to open the &lt;code&gt;.vscode/mcp.json&lt;/code&gt; file and configure &lt;code&gt;servers&lt;/code&gt;.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;{
  "servers": {
    "&amp;lt;server-name&amp;gt;": {
      "type": "http",
      "url": "[NGROK_FORWARDING_URL]/mcp"
    }
  }
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Claude Code
&lt;/h3&gt;

&lt;p&gt;MCP servers are stored at &lt;code&gt;~/.claude.json&lt;/code&gt; in Claude Code. Use the CLI to add your MCP app:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;claude mcp add --transport http &amp;lt;server-name&amp;gt; "[NGROK_FORWARDING_URL]/mcp"
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Mistral AI
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;Open the side panel and expand Intelligence &amp;gt; Connectors&lt;/li&gt;
&lt;li&gt;Click "+ Add Connector" on the right side of the page&lt;/li&gt;
&lt;li&gt;In the MCP Connectors directory, click the "Custom MCP Connector tab"&lt;/li&gt;
&lt;li&gt;Enter a name for the connector and the following server URL: &lt;code&gt;[NGROK_FORWARDING_URL]/mcp&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Finish configuring your connector and click "Create"&lt;/li&gt;
&lt;li&gt;To use the connector, click the "Tools" button below the chat input and enable it in the "Connectors" section.&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  Codex
&lt;/h3&gt;

&lt;p&gt;MCP servers in Codex are located at &lt;code&gt;~/.codex/config.toml&lt;/code&gt; and you can install your MCP app using the CLI:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;codex mcp add &amp;lt;server-name&amp;gt; --url "[NGROK_FORWARDING_URL]/mcp"
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Create a widget
&lt;/h2&gt;

&lt;p&gt;Creating a new widget means setting up the server side where we can set up the input data that comes from the AI client (which is the user prompt itself) and the web component which is the front-end widget where we show the output (such as a chart, data table, or just text).&lt;/p&gt;

&lt;h3&gt;
  
  
  Server component
&lt;/h3&gt;

&lt;p&gt;If you want to create a new widget yourself, then first create a new file inside the &lt;code&gt;server/src/widgets&lt;/code&gt; folder and add the following code that creates a basic server side tool which returns a string as output:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;import { z } from "zod";

// Basic Answer widget configuration
export const basicTextWidget = {
  name: "basic-text" as const,
  metadata: {
    description: "Basic Text",
  },
  toolConfig: {
    description: "Show a text message based on a question.",
    inputSchema: {
      question: z.string().describe("The user's question."),
    },
  },
  handler: async () =&amp;gt; {
    try {
      const answer = "Hello, world!";
      return {
        structuredContent: { answer },
        content: [],
        isError: false,
      };
    } catch (error) {
      return {
        content: [{ type: "text" as const, text: `Error: ${error}` }],
        isError: true,
      };
    }
  },
};
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Web component
&lt;/h3&gt;

&lt;p&gt;Then create the front-end part of the widget inside the &lt;code&gt;web/src/widgets&lt;/code&gt; folder where you can use React code to create the markup of the widget and use the server data, which in this case is a basic text coming from our server component:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;import "@/index.css";

import { mountWidget } from "skybridge/web";
import { useToolInfo } from "../helpers";

function BasicTextWidget() {
  const { input, output } = useToolInfo&amp;lt;"basic-text"&amp;gt;();
  if (!output) {
    return (
      &amp;lt;div role="status"&amp;gt;
          &amp;lt;svg aria-hidden="true" className="w-8 h-8 text-neutral-tertiary animate-spin fill-brand" viewBox="0 0 100 101" fill="none" xmlns="http://www.w3.org/2000/svg"&amp;gt;
              &amp;lt;path d="M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z" fill="currentColor"/&amp;gt;
              &amp;lt;path d="M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z" fill="currentFill"/&amp;gt;
          &amp;lt;/svg&amp;gt;
          &amp;lt;span className="sr-only"&amp;gt;Loading...&amp;lt;/span&amp;gt;
      &amp;lt;/div&amp;gt;
    );
  }

  return (
    &amp;lt;div className="p-4 space-y-2"&amp;gt;
      &amp;lt;p className="text-body"&amp;gt;&amp;lt;strong&amp;gt;Question:&amp;lt;/strong&amp;gt; {input.question}&amp;lt;/p&amp;gt;
      &amp;lt;p className="text-body"&amp;gt;&amp;lt;strong&amp;gt;Answer:&amp;lt;/strong&amp;gt; {output.answer}&amp;lt;/p&amp;gt;
    &amp;lt;/div&amp;gt;
  );
}

export default BasicTextWidget;

mountWidget(&amp;lt;BasicTextWidget /&amp;gt;);
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Finally, register the widget in the &lt;code&gt;server.ts&lt;/code&gt; file:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;import { McpServer } from "skybridge/server";
import { basicTextWidget } from "./widgets/basic-text-server.js";

const server = new McpServer(
  {
    name: "mcp-ui-components",
    version: "0.0.1",
  },
  { capabilities: {} }
)
  .registerWidget(
    basicTextWidget.name,
    basicTextWidget.metadata,
    basicTextWidget.toolConfig,
    basicTextWidget.handler
  )
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Customize theming
&lt;/h2&gt;

&lt;p&gt;Flowbite allows you to easily customize the appearance of the UI components from the MCP apps by using the &lt;a href="https://flowbite.com/docs/customize/theming/" rel="noopener noreferrer"&gt;theming options&lt;/a&gt; based on CSS variables from Tailwind.&lt;/p&gt;

&lt;p&gt;Select one of the predefined themes from Flowbite or customize the variables yourself in the &lt;code&gt;index.css&lt;/code&gt; file:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;/* choose one of the following */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&amp;amp;display=swap');
@import "flowbite/src/themes/default";

/* MINIMAL THEME
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&amp;amp;display=swap');
@import "flowbite/src/themes/minimal";
*/

/* ENTERPRISE THEME
@import url('https://fonts.googleapis.com/css2?family=Shantell+Sans:ital,wght@0,300..800;1,300..800&amp;amp;display=swap');
@import "flowbite/src/themes/enterprise";
*/

/* PLAYFUL THEME
@import url('https://fonts.googleapis.com/css2?family=Google+Sans+Code:ital,wght@0,300..800;1,300..800&amp;amp;display=swap');
@import "flowbite/src/themes/playful";
*/

/* MONO THEME
@import "flowbite/src/themes/mono";
*/
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Resources
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://modelcontextprotocol.io/docs/getting-started/intro" rel="noopener noreferrer"&gt;MCP Protocol&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://flowbite.com/docs/getting-started/mcp-ui/" rel="noopener noreferrer"&gt;Flowbite MCP UI&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://tailwindcss.com/" rel="noopener noreferrer"&gt;Tailwind CSS&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/alpic-ai/skybridge" rel="noopener noreferrer"&gt;Skybridge framework&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>mcp</category>
      <category>ai</category>
      <category>chatgpt</category>
      <category>opensource</category>
    </item>
    <item>
      <title>Convert Figma layers to code in Tailwind CSS with Flowbite MCP</title>
      <dc:creator>Zoltán Szőgyényi</dc:creator>
      <pubDate>Thu, 11 Dec 2025 12:43:36 +0000</pubDate>
      <link>https://forem.com/themesberg/convert-figma-layers-to-code-in-tailwind-css-with-flowbite-mcp-50ec</link>
      <guid>https://forem.com/themesberg/convert-figma-layers-to-code-in-tailwind-css-with-flowbite-mcp-50ec</guid>
      <description>&lt;p&gt;In this guide you will learn how to install the Flowbite MCP server and convert Figma design files in your MCP client such as Cursor, Windsurf or Claude and generate code in Tailwind CSS and based on the &lt;a href="https://flowbite.com/pro/#pricing" rel="noopener noreferrer"&gt;Flowbite Design System&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Short demo before getting into the guide:&lt;/p&gt;

&lt;p&gt;Step 1: Select Figma layer&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fe50qjirbqu87y616wwp3.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fe50qjirbqu87y616wwp3.png" alt="select figma layer" width="800" height="530"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Step 2: Tell the AI to convert it to code using Flowbite MCP&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fx42x1kbj65putnmcwar2.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fx42x1kbj65putnmcwar2.png" alt="ai prompt" width="800" height="459"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Step 3: Add the code to your Tailwind CSS + Flowbite project&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F4zd6z6rjhgntxiwgen9k.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F4zd6z6rjhgntxiwgen9k.png" alt="coded preview" width="800" height="639"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;You can create this development flow yourself by creating a &lt;a href="https://flowbite.com/docs/getting-started/quickstart/" rel="noopener noreferrer"&gt;Flowbite project&lt;/a&gt; with Tailwind CSS installed and follow this MCP guide.&lt;/p&gt;

&lt;h2&gt;
  
  
  Introduction
&lt;/h2&gt;

&lt;p&gt;MCP (Model-Context-Protocol) is a new way to structure a communication protocol between MCP servers (Flowbite MCP) and MCP clients (ie. Windsurf, Cursor). It enables adding additional context to your AI development workflow by integrating resources and tools specific to your project.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://flowbite.com/docs/getting-started/mcp/" rel="noopener noreferrer"&gt;Flowbite MCP&lt;/a&gt; is an open-source server that adds the right amount of context to the LLM providers which improves the quality of UI generation in code - whether it's HTML, React, Svelte, or other frameworks.&lt;/p&gt;

&lt;p&gt;Additionally, we also developed tools to convert Figma layers to code relevant to your codebase using Flowbite and Tailwind CSS and also other tools such as generating theme files based on branded colors.&lt;/p&gt;

&lt;h2&gt;
  
  
  Install Flowbite MCP
&lt;/h2&gt;

&lt;p&gt;The easiest way to install the Flowbite MCP is using NPX:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;npx flowbite-mcp
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You can also run &lt;code&gt;npx flowbite-mcp --help&lt;/code&gt; to show a list of helpful options.&lt;/p&gt;

&lt;h2&gt;
  
  
  Requirements
&lt;/h2&gt;

&lt;p&gt;If you want to use the Figma to code converter tool, you need to get a &lt;a href="https://help.figma.com/hc/en-us/articles/8085703771159-Manage-personal-access-tokens" rel="noopener noreferrer"&gt;personal access token&lt;/a&gt; from Figma and set it as an environment variable. Otherwise, Flowbite MCP is specifically built for a project that would use Tailwind CSS, Flowbite and optionally Figma for prototyping.&lt;/p&gt;

&lt;h2&gt;
  
  
  Configuring MCP client
&lt;/h2&gt;

&lt;p&gt;An MCP client is a software tool such as Cursor, Windsurf or Claude Code that you use for AI development.&lt;/p&gt;

&lt;p&gt;Most of these tools supports MCP servers out of the box and you need to update a JSON file that contains the configuration for the MCP servers.&lt;/p&gt;

&lt;h3&gt;
  
  
  Cursor
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://cursor.com/en-US/install-mcp?name=flowbite&amp;amp;config=eyJlbnYiOnsiRklHTUFfQUNDRVNTX1RPS0VOIjoiWU9VUl9QRVJTT05BTF9GSUdNQV9BQ0NFU1NfVE9LRU4ifSwiY29tbWFuZCI6Im5weCAteSBmbG93Yml0ZS1tY3AifQ%3D%3D" rel="noopener noreferrer"&gt;Install in Cursor&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Cursor is one of the most popular IDEs for AI development for software engineers and web development. &lt;/p&gt;

&lt;p&gt;To set up Flowbite MCP with Cursor, open the &lt;code&gt;mcp.json&lt;/code&gt; and add the following configuration:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;{
  "mcpServers": {
    "flowbite": {
      "command": "npx",
      "args": ["-y", "flowbite-mcp"],
      "env": {
        "FIGMA_ACCESS_TOKEN": "YOUR_PERSONAL_FIGMA_ACCESS_TOKEN"
      }
    }
  }
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Windsurf
&lt;/h3&gt;

&lt;p&gt;Windsurf is the second most popular IDE for AI development and the configuration is similar to Cursor. &lt;/p&gt;

&lt;p&gt;Update the &lt;code&gt;mcp_config.json&lt;/code&gt; file with the following configuration:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;{
  "mcpServers": {
    "flowbite": {
      "command": "npx",
      "args": ["-y", "flowbite-mcp"],
      "env": {
        "FIGMA_ACCESS_TOKEN": "YOUR_PERSONAL_FIGMA_ACCESS_TOKEN"
      }
    }
  }
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Claude Code
&lt;/h3&gt;

&lt;p&gt;To install Flowbite MCP in Claude Desktop you need to configure the &lt;code&gt;claude_desktop_config.json&lt;/code&gt; file:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;{
  "mcpServers": {
    "flowbite": {
      "command": "npx",
      "args": ["-y", "flowbite-mcp"],
      "env": {
        "FIGMA_ACCESS_TOKEN": "YOUR_PERSONAL_FIGMA_ACCESS_TOKEN"
      }
    }
  }
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If you'd like to request a new integration or have any questions, please open an issue on our &lt;a href="https://github.com/themesberg/flowbite-mcp" rel="noopener noreferrer"&gt;GitHub repository&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Flowbite MCP tools
&lt;/h2&gt;

&lt;p&gt;Use the tools from Flowbite MCP to enhance your AI development workflow.&lt;/p&gt;

&lt;h3&gt;
  
  
  Convert Figma to code
&lt;/h3&gt;

&lt;p&gt;With Flowbite MCP you can now convert &lt;a href="https://flowbite.com/figma/" rel="noopener noreferrer"&gt;Figma layers&lt;/a&gt; to code by prompting any AI provider. &lt;/p&gt;

&lt;p&gt;Currently, we recommend either Gemini 3, GPT 5 or Sonnet 4.5 for the highest quality code conversions and based on the complexity of the designs, you need to follow up with "reparation prompts".&lt;/p&gt;

&lt;p&gt;Here's a prompt example that you can use to convert Figma design to code:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;use flowbite mcp to convert this figma &amp;lt;FIGMA_NODE_LINK&amp;gt; to code
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Note: to get the node link from Figma, all you need to do is:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Select the Figma layer in your project&lt;/li&gt;
&lt;li&gt;Right click and select &lt;code&gt;Copy/paste as&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Select &lt;code&gt;Copy link to selection&lt;/code&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;We recommend using the offical &lt;a href="https://flowbite.com/figma/" rel="noopener noreferrer"&gt;Flowbite Design System&lt;/a&gt; as a solid foundation for your UI generation.&lt;/p&gt;

&lt;h3&gt;
  
  
  Generate theme file
&lt;/h3&gt;

&lt;p&gt;Since we released &lt;a href="https://flowbite.com/docs/customize/theming/" rel="noopener noreferrer"&gt;theming support&lt;/a&gt; for Flowbite by providing a better way to customize UI using variables we also built a tool in Flowbite MCP to generate a theme file based on a brand color and a general description of the UI that you'd like to use in your project.&lt;/p&gt;

&lt;p&gt;Here's a prompt example that you can use:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;use flowbite mcp to generate a theme file using the "#0000FF" brand color
and create a professional, enterprise, clean looking UI (ie. Jira, Facebook)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Local development
&lt;/h2&gt;

&lt;p&gt;If you'd like to extend Flowbite MCP or contribute to the project, you can run it locally as a server.&lt;/p&gt;

&lt;p&gt;We recommend cloning the repository from GitHub, installing the dependencies, building and then running the server.&lt;/p&gt;

&lt;p&gt;Using the native MCP inspector tool can also be a great way to debug and test the server.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;# Clone the repository
git clone https://github.com/themesberg/flowbite-mcp.git
cd flowbite-mcp

# Install dependencies
npm install

# Build the project
npm run build

# Run in stdio mode (for Claude Desktop, Cursor)
npm start

# Run inspector
npm run start inspector
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Transport modes
&lt;/h3&gt;

&lt;p&gt;Flowbite MCP supports both stdio and http transport modes if you want to run it locally as a server.&lt;/p&gt;

&lt;p&gt;Use the &lt;code&gt;--mode&lt;/code&gt; option to set either &lt;code&gt;http&lt;/code&gt; or &lt;code&gt;stdio&lt;/code&gt; transport mode.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;# Run in HTTP server mode for production
npx flowbite-mcp --mode http --port 3000
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Additionally, you can also set the &lt;code&gt;--port&lt;/code&gt; option to choose a different port for the HTTP server.&lt;/p&gt;

&lt;h3&gt;
  
  
  Docker configuration
&lt;/h3&gt;

&lt;p&gt;Flowbite MCP also has a Docker configuration file that you can use to run it as a container.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;# Build and run with Docker Compose (recommended)
docker-compose up -d

# Check health
curl http://localhost:3000/health

# View logs
docker-compose logs -f

# Stop
docker-compose down
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Contributing
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://github.com/themesberg/flowbite-mcp" rel="noopener noreferrer"&gt;Flowbite MCP&lt;/a&gt; is open-source under the MIT license and contributions are more than welcome to the project.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>mcp</category>
      <category>tailwindcss</category>
      <category>opensource</category>
    </item>
    <item>
      <title>Free and open-source collection of SVG illustrations for Flowbite</title>
      <dc:creator>Zoltán Szőgyényi</dc:creator>
      <pubDate>Mon, 17 Feb 2025 12:24:28 +0000</pubDate>
      <link>https://forem.com/themesberg/free-and-open-source-collection-of-svg-illustrations-for-flowbite-3lme</link>
      <guid>https://forem.com/themesberg/free-and-open-source-collection-of-svg-illustrations-for-flowbite-3lme</guid>
      <description>&lt;p&gt;Today I would like to show you a project that we have been working on for over a year and that we are finally launching to the world. It's a collection of over &lt;a href="https://flowbite.com/illustrations/" rel="noopener noreferrer"&gt;50 SVG illustrations&lt;/a&gt; designed in 3D style available in dark and light mode.&lt;/p&gt;

&lt;p&gt;🔗 Check them out here: &lt;a href="https://flowbite.com/illustrations/" rel="noopener noreferrer"&gt;https://flowbite.com/illustrations/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;All of these illustrations are open-source under the MIT license and they are free to use in your projects. This comes roughly one year after we have launched our &lt;a href="https://flowbite.com/icons/" rel="noopener noreferrer"&gt;Flowbite Icons&lt;/a&gt; collection, to which we keep adding new icons every month.&lt;/p&gt;

&lt;p&gt;These illustrations are available in SVG, but they can also be downloaded in PNG format using our &lt;a href="https://flowbite.com/illustrations/" rel="noopener noreferrer"&gt;coded interface&lt;/a&gt; where you can also filter and search for any illustrations.&lt;/p&gt;

&lt;p&gt;Let me show you some of the features of these new illustrations.&lt;/p&gt;

&lt;h2&gt;
  
  
  Available in dark mode
&lt;/h2&gt;

&lt;p&gt;All of the illustrations have a dark mode variant which slightly changes the colors to accompany darker interfaces. Flowbite inherently has light and dark mode UI components so it made a lot of sense to accommodate illustrations too.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://flowbite.com/illustrations/" rel="noopener noreferrer"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fy6qj20g0hzgl7ffqb6i2.png" alt="SVG dark illustrations" width="800" height="448"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;To copy the dark mode variant of the illustration, all you need to do is switch the light/dark mode of the Flowbite website and the source code or PNG will automatically switch.&lt;/p&gt;

&lt;h2&gt;
  
  
  Customize colors
&lt;/h2&gt;

&lt;p&gt;You can easily set your own color by using the color switcher from the settings bar or adding your own colors by using the Figma source files if you want more control.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://flowbite.com/illustrations/" rel="noopener noreferrer"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fcvz0yabdgbtknscjevt6.png" alt="SVG color illustrations" width="800" height="453"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Figma file
&lt;/h2&gt;

&lt;p&gt;We have also created a &lt;a href="https://www.figma.com/community/file/1471861797767044313" rel="noopener noreferrer"&gt;Figma file for the illustrations&lt;/a&gt; so that you can use these as a designer or have more control over the source files that we ourselves have worked on.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.figma.com/community/file/1471861797767044313" rel="noopener noreferrer"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F9won6ha2ochzwla5n456.png" alt="SVG Figma Illustrations" width="800" height="404"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;These are also open-source and you can use them in your projects, but if you're building templates please mention in the credits that Flowbite has been used as a source link.&lt;/p&gt;

&lt;h2&gt;
  
  
  Updates
&lt;/h2&gt;

&lt;p&gt;We'll add about 4-5 illustrations every month so if you want to request your own, then please reach out to us via the &lt;a href="https://github.com/themesberg/flowbite-illustrations" rel="noopener noreferrer"&gt;GitHub repository&lt;/a&gt; and create an issue.&lt;/p&gt;

&lt;h2&gt;
  
  
  Support us
&lt;/h2&gt;

&lt;p&gt;If you are using our open-source collection and you're wondering how you can be supporting us, we have a &lt;a href="https://flowbite.com/pro/#pricing" rel="noopener noreferrer"&gt;pro version of Flowbite&lt;/a&gt; that you can get to access many UI components, templates, blocks, and an advanced Figma design system to build and designe websites faster and more efficiently.&lt;/p&gt;

&lt;h2&gt;
  
  
  References
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://flowbite.com/docs/getting-started/introduction/" rel="noopener noreferrer"&gt;Flowbite UI Library&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://flowbite.com/illustrations/" rel="noopener noreferrer"&gt;SVG illustrations&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://flowbite.com/blocks/" rel="noopener noreferrer"&gt;Flowbite Blocks&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://flowbite.com/icons/" rel="noopener noreferrer"&gt;SVG Icons&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>webdev</category>
      <category>programming</category>
      <category>flowbite</category>
      <category>tailwindcss</category>
    </item>
    <item>
      <title>Open-source WYSIWYG text editor component built with Tailwind CSS and Flowbite</title>
      <dc:creator>Zoltán Szőgyényi</dc:creator>
      <pubDate>Sun, 29 Sep 2024 10:16:37 +0000</pubDate>
      <link>https://forem.com/themesberg/open-source-wysiwyg-text-editor-component-built-with-tailwind-css-and-flowbite-5a0</link>
      <guid>https://forem.com/themesberg/open-source-wysiwyg-text-editor-component-built-with-tailwind-css-and-flowbite-5a0</guid>
      <description>&lt;p&gt;The &lt;a href="https://flowbite.com/docs/plugins/wysiwyg/" rel="noopener noreferrer"&gt;WYSIWYG text editor from Flowbite&lt;/a&gt; is open-source under the MIT license based on the Tip Tap library and allows you to easily edit complex text data with typography styles, links, images, videos, and more.&lt;/p&gt;

&lt;p&gt;The markup and styles provided by Flowbite are all built with the utility classes from Tailwind CSS and the styles for the content inside the WYSIWYG text editor are based on the &lt;a href="https://flowbite.com/docs/components/typography/" rel="noopener noreferrer"&gt;Flowbite Typography&lt;/a&gt; plugin.&lt;/p&gt;

&lt;p&gt;All examples provided on this page have support for dark mode, RTL (right-to-left) styles, responsiveness on mobile devices and you can easily add your own functionality using JavaScript and the Flowbite API.&lt;/p&gt;

&lt;h2&gt;
  
  
  Getting started
&lt;/h2&gt;

&lt;p&gt;Before continuing make sure that you have Tailwind CSS, Flowbite, and Tip Tap installed in your project.&lt;/p&gt;

&lt;p&gt;Follow the &lt;a href="https://flowbite.com/docs/getting-started/quickstart/" rel="noopener noreferrer"&gt;quickstart guide&lt;/a&gt; from Flowbite to enable the interactive elements&lt;/p&gt;

&lt;p&gt;Install the &lt;a href="https://flowbite.com/docs/components/typography/" rel="noopener noreferrer"&gt;Flowbite Typography&lt;/a&gt; plugin to format the content of text inside the WYSYIWYG editor preview:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npm i flowbite-typography
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Require the plugin inside the &lt;code&gt;tailwind.config.js&lt;/code&gt; file:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;  theme: {
    // ...
  },
  plugins: [
    require('flowbite-typography'),
    // ...
  ],
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Set the &lt;code&gt;wysiwyg&lt;/code&gt; field from the Flowbite plugin to &lt;code&gt;true&lt;/code&gt; to enable pseudo styles:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;plugins: [
  require('flowbite/plugin')({
      wysiwyg: true,
  }),
  // ... other plugins
]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Finally, install Tip Tap either via NPM or skip this step if you're using CDN:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;npm install @tiptap/core @tiptap/pm @tiptap/starter-kit
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now you're ready to use the examples below by copying the HTML markup and the JavaScript code.&lt;/p&gt;

&lt;h2&gt;
  
  
  Default text editor
&lt;/h2&gt;

&lt;p&gt;Use this example of a WYSIWYG text editor to enable basic typography styling and formatting, adding lists, links, images, videos, code blocks, aligning text, blockquotes, setting headers and paragraphs and more.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://flowbite.com/docs/plugins/wysiwyg/#default-text-editor" rel="noopener noreferrer"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F60vqgmgaljil879rclc1.png" alt="Tailwind CSS WYSIWYG" width="800" height="562"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://flowbite.com/docs/plugins/wysiwyg/#default-text-editor" rel="noopener noreferrer"&gt;Get source code and example&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Text formatting
&lt;/h2&gt;

&lt;p&gt;Use this example of a WYSIWYG text editor to enable typography styling, formatting and marking such as underline, bold, italic, strikethrough, code, highlight and also selecting text size, color, font family and more using the utility classes from Tailwind CSS.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://flowbite.com/docs/plugins/wysiwyg/#text-formatting" rel="noopener noreferrer"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fiwwfvfzubwczbwv5cwdl.png" alt="Tailwind CSS WYSIWYG formatting" width="800" height="554"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://flowbite.com/docs/plugins/wysiwyg/#text-formatting" rel="noopener noreferrer"&gt;Get source code and example&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Text alignment
&lt;/h2&gt;

&lt;p&gt;Enable text alignment to the left, center, right, and justify for the content inside of the WYSIWYG component.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://flowbite.com/docs/plugins/wysiwyg/#text-alignment" rel="noopener noreferrer"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fjx1omy8tnjt6uqzbosfm.png" alt="Tailwind CSS WYSIWYG text alignment" width="800" height="531"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://flowbite.com/docs/plugins/wysiwyg/#text-alignment" rel="noopener noreferrer"&gt;Get source code and example&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Typography elements
&lt;/h2&gt;

&lt;p&gt;Use this example to create typography elements like bullet lists, ordered lists, blockquotes, horizontal rules, paragraphs, headings, code blocks based on Tailwind CSS utility classees and the Flowbite API.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://flowbite.com/docs/plugins/wysiwyg/#typography-elements" rel="noopener noreferrer"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F3ey2xgsgshji3w2znfa7.png" alt="Tailwind CSS WYSIWYHG typography" width="800" height="645"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://flowbite.com/docs/plugins/wysiwyg/#typography-elements" rel="noopener noreferrer"&gt;Get source code and examples&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Configuring links
&lt;/h2&gt;

&lt;p&gt;Use this example to add and remove anchor links for the content inside of the WYSIWYG text editor.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://flowbite.com/docs/plugins/wysiwyg/#configuring-links" rel="noopener noreferrer"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fg814ljoy2f9pxf7ve2jb.png" alt="Tailwind CSS WYSIWYG links" width="800" height="537"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://flowbite.com/docs/plugins/wysiwyg/#configuring-links" rel="noopener noreferrer"&gt;Get source code and examples&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Using images
&lt;/h2&gt;

&lt;p&gt;Use this example to learn how to add images inside of the WYSIWYG text editor and configure settings such as the image URL, image alt attribute which is important for SEO and accessibility and the image title.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://flowbite.com/docs/plugins/wysiwyg/#using-images" rel="noopener noreferrer"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ftqf3jc47y2h8edvbsjfh.png" alt="Tailwind CSS WYSIWYG images" width="800" height="659"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://flowbite.com/docs/plugins/wysiwyg/#using-images" rel="noopener noreferrer"&gt;Get source code and examples&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Adding videos
&lt;/h2&gt;

&lt;p&gt;Use this example to embed videos inside the WYSIWYG text editor based on a YouTube URL source and set the width and height of the video by using the Flowbite modal component API.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://flowbite.com/docs/plugins/wysiwyg/#adding-videos" rel="noopener noreferrer"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F2jczscyelkoi0j23hme3.png" alt="Tailwind CSS WYSIWYGH videos" width="800" height="540"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://flowbite.com/docs/plugins/wysiwyg/#adding-videos" rel="noopener noreferrer"&gt;Get source code and examples&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Editing tables
&lt;/h2&gt;

&lt;p&gt;Use this example to edit table data inside the WYSIWYG text editor by adding and removing table column, rows, and cells and use other features to navigate through the table data for a convenient editing process.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://flowbite.com/docs/plugins/wysiwyg/#editing-tables" rel="noopener noreferrer"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fab4jedoelfm4qbmr9fqv.png" alt="Tailwind CSS WYSIWYG tables" width="800" height="667"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://flowbite.com/docs/plugins/wysiwyg/#editing-tables" rel="noopener noreferrer"&gt;Get source code and examples&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Undo and redo
&lt;/h2&gt;

&lt;p&gt;Use the history functionality from the WYSIWYG text editor component to integrate undo and redo actions.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://flowbite.com/docs/plugins/wysiwyg/#undo-and-redo" rel="noopener noreferrer"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F60c5a2ufsgoefbsr9k0c.png" alt="Tailwind CSS WYSIWYG undo redo" width="800" height="537"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://flowbite.com/docs/plugins/wysiwyg/#undo-and-redo" rel="noopener noreferrer"&gt;Get source code and examples&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Exporting data
&lt;/h2&gt;

&lt;p&gt;Use the editor.getJSON() and the editor.getHTML() functions to export the text content inside of the WYSIWYG text editor in JSON or raw HTML format to persist into your database or API structure.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://flowbite.com/docs/plugins/wysiwyg/#exporting-data" rel="noopener noreferrer"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fyvshtl38nykz7qisvdx6.png" alt="Tailwind CSS WYSIWYG export data" width="800" height="534"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://flowbite.com/docs/plugins/wysiwyg/#exporting-data" rel="noopener noreferrer"&gt;Get source code and examples&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Javascript behaviour
&lt;/h2&gt;

&lt;p&gt;Learn more about how you can programmatically use the WYSIWYG editor using Javascript by creating a new instance of the object, setting options, method, event listeners, and more to integrate with your code base.&lt;/p&gt;

&lt;p&gt;After you have installed Tip Tap via NPM or CDN you can create a new &lt;code&gt;Editor&lt;/code&gt; object:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nx"&gt;Editor&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;@tiptap/core&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="nx"&gt;StarterKit&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;@tiptap/starter-kit&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;Editor&lt;/span&gt;&lt;span class="p"&gt;({&lt;/span&gt;
  &lt;span class="na"&gt;element&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;getElementById&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;wysiwyg&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt;
  &lt;span class="na"&gt;extensions&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="nx"&gt;StarterKit&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt;
  &lt;span class="na"&gt;content&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;&amp;lt;p&amp;gt;Welcome to Flowbite!&amp;lt;/p&amp;gt;&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;})&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Make sure that you also have an empty &lt;code&gt;div&lt;/code&gt; element with the appropiate ID:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;div&lt;/span&gt; &lt;span class="na"&gt;id=&lt;/span&gt;&lt;span class="s"&gt;"wysiwyg"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&amp;lt;/div&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This code will automatically set up the markup needed inside of the WYSIWYG component. Please note the fact that the Tip Tap library is headless so you need to style the elements yourself, but you can copy-paste the examples from Flowbite on this page.&lt;/p&gt;

&lt;h3&gt;
  
  
  Content styling
&lt;/h3&gt;

&lt;p&gt;We also recommend adding custom typography classes from the &lt;a href="https://flowbite.com/docs/components/typography/" rel="noopener noreferrer"&gt;Flowbite Typography&lt;/a&gt; package so that the content inside of the text editor will be correctly styled:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;Editor&lt;/span&gt;&lt;span class="p"&gt;({&lt;/span&gt;
  &lt;span class="na"&gt;element&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;getElementById&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;wysiwyg&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt;
  &lt;span class="na"&gt;extensions&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="nx"&gt;StarterKit&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt;
  &lt;span class="na"&gt;content&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;&amp;lt;p&amp;gt;Welcome to Flowbite!&amp;lt;/p&amp;gt;&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="na"&gt;editorProps&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="na"&gt;attributes&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
            &lt;span class="na"&gt;class&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;format lg:format-lg dark:format-invert focus:outline-none format-blue max-w-none&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="p"&gt;},&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;})&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Extensions
&lt;/h3&gt;

&lt;p&gt;Tip Tap is a modular library meaning that if you want to introduce images, videos, links and other elements inside the WYSIWYG component you need to specifically import that resources from the library and set it as an extension when initialising the &lt;code&gt;Editor&lt;/code&gt; object.&lt;/p&gt;

&lt;p&gt;Here is one example where we add the link extension:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nx"&gt;Editor&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;@tiptap/core&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="nx"&gt;StarterKit&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;@tiptap/starter-kit&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="nx"&gt;Link&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;@tiptap/extension-link&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;editor&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;Editor&lt;/span&gt;&lt;span class="p"&gt;({&lt;/span&gt;
    &lt;span class="na"&gt;element&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;querySelector&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;#wysiwyg-links-example&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt;
    &lt;span class="na"&gt;extensions&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;
        &lt;span class="nx"&gt;StarterKit&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="nx"&gt;Link&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;configure&lt;/span&gt;&lt;span class="p"&gt;({&lt;/span&gt;
            &lt;span class="na"&gt;openOnClick&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
            &lt;span class="na"&gt;autolink&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
            &lt;span class="na"&gt;defaultProtocol&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;https&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="p"&gt;})&lt;/span&gt;
    &lt;span class="p"&gt;],&lt;/span&gt;
    &lt;span class="na"&gt;content&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;&amp;lt;p&amp;gt;Flowbite is an &amp;lt;strong&amp;gt;open-source library of UI components&amp;lt;/strong&amp;gt; based on the utility-first Tailwind CSS framework featuring dark mode support, a Figma design system, and more.&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;It includes all of the commonly used components that a website requires, such as buttons, dropdowns, navigation bars, modals, datepickers, advanced charts and the list goes on.&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;Learn more about all components from the &amp;lt;a href="https://flowbite.com/docs/getting-started/introduction/"&amp;gt;Flowbite Docs&amp;lt;/a&amp;gt;.&amp;lt;/p&amp;gt;&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="na"&gt;editorProps&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="na"&gt;attributes&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
            &lt;span class="na"&gt;class&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;format lg:format-lg dark:format-invert focus:outline-none format-blue max-w-none&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="p"&gt;},&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;});&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Methods
&lt;/h3&gt;

&lt;p&gt;You can easily call the methods from the &lt;code&gt;Editor&lt;/code&gt; object to set text styles, links, images, and more. Here is one example where based upon a click event on a button you will be prompted with the URL of the link and it will add it to the currently selected text:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;// set up custom event listeners for the buttons
document.getElementById('toggleLinkButton').addEventListener('click', () =&amp;gt; {
    const url = window.prompt('Enter image URL:', 'https://flowbite.com');
    editor.chain().focus().toggleLink({ href: url }).run();
});
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;And here's another example where you can unset a link:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;// unset the links based on a button click
document.getElementById('removeLinkButton').addEventListener('click', () =&amp;gt; {
    editor.chain().focus().unsetLink().run()
});
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Examples from this page have functional elements so you can check the JavaScript tab for the source code.&lt;/p&gt;

&lt;h2&gt;
  
  
  License
&lt;/h2&gt;

&lt;p&gt;Resources from this page are licensed under the MIT License, including the Flowbite examples and Tip Tap.&lt;/p&gt;

&lt;h2&gt;
  
  
  Credits
&lt;/h2&gt;

&lt;p&gt;These examples could not have been done without the usage of the following open-source resources:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://flowbite.com/docs/getting-started/introduction/" rel="noopener noreferrer"&gt;Flowbite Library&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://flowbite.com/docs/plugins/wysiwyg/" rel="noopener noreferrer"&gt;Tailwind CSS WYSIWYG - Flowbite&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/ueberdosis/tiptap" rel="noopener noreferrer"&gt;Tip Tap Library&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://tailwindcss.com/" rel="noopener noreferrer"&gt;Tailwind CSS&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://flowbite.com/icons/" rel="noopener noreferrer"&gt;Flowbite SVG Icons&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>tailwindcss</category>
      <category>opensource</category>
      <category>webdev</category>
      <category>flowbite</category>
    </item>
    <item>
      <title>Storefront hero sections for e-commerce built with Tailwind CSS and Flowbite</title>
      <dc:creator>Zoltán Szőgyényi</dc:creator>
      <pubDate>Mon, 26 Aug 2024 13:38:57 +0000</pubDate>
      <link>https://forem.com/themesberg/storefront-hero-sections-for-e-commerce-built-with-tailwind-css-and-flowbite-3j8j</link>
      <guid>https://forem.com/themesberg/storefront-hero-sections-for-e-commerce-built-with-tailwind-css-and-flowbite-3j8j</guid>
      <description>&lt;p&gt;Hey devs 👋&lt;/p&gt;

&lt;p&gt;Today I would like to show you a couple of new components that we have built using Tailwind CSS and the Flowbite Library for e-commerce websites and these are the &lt;a href="https://flowbite.com/blocks/e-commerce/storefront-hero/" rel="noopener noreferrer"&gt;hero sections (aka. storefront)&lt;/a&gt; as the first and primary parts of the website.&lt;/p&gt;

&lt;p&gt;You can use these to show promotions, search inputs, CTA buttons, campaigns, the primary categories of your store and a whole lot more.&lt;/p&gt;

&lt;p&gt;All of the components are built with Tailwind CSS, support dark mode, have RTL direction enabled and the first example is also open-source under the MIT license.&lt;/p&gt;

&lt;p&gt;Let's check them out!&lt;/p&gt;

&lt;h2&gt;
  
  
  Default storefront section
&lt;/h2&gt;

&lt;p&gt;Use this section to show a hero section as the storefront page of your e-commerce website featuring a heading, description, CTA button, an illustration and a list of logos of the products that your store is selling.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://flowbite.com/blocks/e-commerce/storefront-hero/#default-hero-section" rel="noopener noreferrer"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ft2vfyw3gtc3j5y7tm1rq.png" alt="Tailwind CSS Storefront" width="800" height="395"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://flowbite.com/blocks/e-commerce/storefront-hero/#default-hero-section" rel="noopener noreferrer"&gt;Get the source code and example&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Storefront hero section with categories
&lt;/h2&gt;

&lt;p&gt;This section can be used as the first section of your e-commerce websites by showing the most popular product categories using cards alongside a heading with two CTA buttons and brand logos below.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://flowbite.com/blocks/e-commerce/storefront-hero/#storefront-hero-section-with-categories" rel="noopener noreferrer"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fae2i5sa8de4rnwteuvi5.png" alt="Tailwind CSS Storefront categories" width="800" height="463"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://flowbite.com/blocks/e-commerce/storefront-hero/#storefront-hero-section-with-categories" rel="noopener noreferrer"&gt;Get the source code and example&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Storefront categories grid view
&lt;/h2&gt;

&lt;p&gt;Use this example to show a complex grid view of the primary and secondary highlighted categories from your e-commerce website.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://flowbite.com/blocks/e-commerce/storefront-hero/#storefront-categories-grid-view" rel="noopener noreferrer"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fnv8tyazsb42iyl2v1jzx.png" alt="Tailwind CSS Storefront grid view" width="800" height="575"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://flowbite.com/blocks/e-commerce/storefront-hero/#storefront-categories-grid-view" rel="noopener noreferrer"&gt;Get the source code and example&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Storefront hero with background image
&lt;/h2&gt;

&lt;p&gt;This section can be used as the hero section of an e-commerce website with a full background image where you show a heading, paragraph, CTA button and a list of the primary categories.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://flowbite.com/blocks/e-commerce/storefront-hero/#storefront-hero-with-background-image" rel="noopener noreferrer"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fixlipour76y838dmuz01.png" alt="Tailwind CSS Storefront background image" width="800" height="403"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://flowbite.com/blocks/e-commerce/storefront-hero/#storefront-hero-with-background-image" rel="noopener noreferrer"&gt;Get the source code and example&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Storefront with CTA and categories list
&lt;/h2&gt;

&lt;p&gt;Use this section to show a list of categories in a sidebar and a hero section with a heading, description and CTA button to increase sales and conversion rates.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://flowbite.com/blocks/e-commerce/storefront-hero/#storefront-with-cta-and-categories-list" rel="noopener noreferrer"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fdll94tejs6bb3d9ezq70.png" alt="Tailwind CSS Storefront with CTA button" width="800" height="447"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://flowbite.com/blocks/e-commerce/storefront-hero/#storefront-with-cta-and-categories-list" rel="noopener noreferrer"&gt;Get the source code and example&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Storefront hero with carousel and search
&lt;/h2&gt;

&lt;p&gt;Use this example to show an advanced storefront hero section with a carousel component featuring limited deals and a search bar for your e-commerce website.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://flowbite.com/blocks/e-commerce/storefront-hero/#storefront-hero-with-carousel-and-search" rel="noopener noreferrer"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fp65ytxzh9d704uvesi40.png" alt="Tailwind CSS Storefront carousel" width="800" height="420"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://flowbite.com/blocks/e-commerce/storefront-hero/#storefront-hero-with-carousel-and-search" rel="noopener noreferrer"&gt;Get the source code and example&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Credits
&lt;/h2&gt;

&lt;p&gt;These components could not have been built without the usage of the following awesome open-source resources:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://tailwindcss.com/" rel="noopener noreferrer"&gt;Tailwind CSS&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://flowbite.com/docs/getting-started/introduction/" rel="noopener noreferrer"&gt;Flowbite&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://flowbite.com/icons/" rel="noopener noreferrer"&gt;Flowbite Icons&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>tailwindcss</category>
      <category>webdev</category>
      <category>flowbite</category>
      <category>javascript</category>
    </item>
    <item>
      <title>Open-source datatable components built with Tailwind CSS and Flowbite</title>
      <dc:creator>Zoltán Szőgyényi</dc:creator>
      <pubDate>Tue, 06 Aug 2024 15:40:25 +0000</pubDate>
      <link>https://forem.com/themesberg/open-source-datatable-components-built-wiht-tailwind-css-5fae</link>
      <guid>https://forem.com/themesberg/open-source-datatable-components-built-wiht-tailwind-css-5fae</guid>
      <description>&lt;p&gt;Hey devs!&lt;/p&gt;

&lt;p&gt;The day has finally come and after many weeks of designing and coding I'm happy to show you a new component that we've just launched here at the Flowbite community: &lt;a href="https://flowbite.com/docs/plugins/datatables/" rel="noopener noreferrer"&gt;the datatables&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;It is an essential, but at the same time very complex component that has the regular table HTML markup as the foundation, but supercharges it with important UX features like searching, filtering, sorting, pagination, and more.&lt;/p&gt;

&lt;p&gt;What is important to note here is that the table is built for best usage with Tailwind CSS and Flowbite and has stuff like dark mode, RTL, responsive design, and a general care for modern design integrated.&lt;/p&gt;

&lt;p&gt;It is easy to get started and unlike other datatable integrations, wrappers, and plugins, this one does not require you to install jQuery - all you need is good old JavaScript, which the browser thankfully already has by default.&lt;/p&gt;

&lt;p&gt;Now without further ado, let's check these out.&lt;/p&gt;

&lt;h2&gt;
  
  
  Getting started
&lt;/h2&gt;

&lt;p&gt;Before continuing make sure that you have Tailwind CSS, Flowbite, and Simple Datables in your project.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Install Tailwind CSS and follow our &lt;a href="https://flowbite.com/docs/getting-started/quickstart/" rel="noopener noreferrer"&gt;quickstart guide&lt;/a&gt; to install Flowbite and the official plugin&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Set the field &lt;code&gt;datatables&lt;/code&gt; to the value &lt;code&gt;true&lt;/code&gt; inside the &lt;code&gt;tailwind.config.js&lt;/code&gt; file:&lt;br&gt;
&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;plugins: [
  require('flowbite/plugin')({
      datatables: true,
  }),
  // ... other plugins
]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;Install the &lt;code&gt;simple-datatables&lt;/code&gt; library using NPM:
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;npm install simple-datatables --save
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Alternatively, you can also include it in your project using CDN:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;script src="https://cdn.jsdelivr.net/npm/simple-datatables@9.0.3"&amp;gt;&amp;lt;/script&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now that you have installed all libraries you can start copy-pasting the datatable components from Flowbite.&lt;/p&gt;

&lt;p&gt;Make sure that in addition to the HTML markup you also copy the JavaScript code to initialize the component.&lt;/p&gt;

&lt;h2&gt;
  
  
  Default datatable
&lt;/h2&gt;

&lt;p&gt;Use this example to show table data with default sorting and pagination functionalities.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://flowbite.com/docs/plugins/datatables/#default-datatable" rel="noopener noreferrer"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F2f4on9bk6odnz1a9teon.png" alt="Tailwind CSS DataTable" width="800" height="764"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://flowbite.com/docs/plugins/datatables/#default-datatable" rel="noopener noreferrer"&gt;Get the HTML and JS code from here&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Table search
&lt;/h2&gt;

&lt;p&gt;Set the &lt;code&gt;searchable&lt;/code&gt; option to &lt;code&gt;true&lt;/code&gt; to enable the search functionality for all table data.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://flowbite.com/docs/plugins/datatables/#table-search" rel="noopener noreferrer"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fu6inl2ekoycfxdod2ghf.png" alt="Tailwind CSS Table Search" width="800" height="796"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://flowbite.com/docs/plugins/datatables/#table-search" rel="noopener noreferrer"&gt;Get the HTML and JS code from here&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Filtering data
&lt;/h2&gt;

&lt;p&gt;To enable filtering data based on a search query for each column you need to copy the custom code from the JavaScript tab and the HTML structure of the table. Enabling search for each individual data column is an advanced way of letting users browse complex data.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://flowbite.com/docs/plugins/datatables/#filtering-data" rel="noopener noreferrer"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F7b8p3l2jdu5b71904mjb.png" alt="Tailwind CSS Table Filter" width="800" height="889"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://flowbite.com/docs/plugins/datatables/#filtering-data" rel="noopener noreferrer"&gt;Get the HTML and JS code from here&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Sorting data
&lt;/h2&gt;

&lt;p&gt;By setting the value &lt;code&gt;sortable&lt;/code&gt; to &lt;code&gt;true&lt;/code&gt; you'll enable all data rows from the datatable to be sortable by clicking on the table column heading. You can also disable it by setting the same option to &lt;code&gt;false&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://flowbite.com/docs/plugins/datatables/#sorting-data" rel="noopener noreferrer"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fwl7zpvjw5wys3au2mjq8.png" alt="Tailwind CSS Table Sorting" width="800" height="787"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://flowbite.com/docs/plugins/datatables/#sorting-data" rel="noopener noreferrer"&gt;Get the HTML and JS code from here&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Table pagination
&lt;/h2&gt;

&lt;p&gt;Pagination is enabled by default for all datatables from Flowbite, however, you can disable it by setting the option &lt;code&gt;paging&lt;/code&gt; to &lt;code&gt;false&lt;/code&gt;. Use the &lt;code&gt;perPage&lt;/code&gt; option to specify how many data rows to show by default. &lt;/p&gt;

&lt;p&gt;You can also set the &lt;code&gt;perPageSelect&lt;/code&gt; option to set the selection options of the table.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://flowbite.com/docs/plugins/datatables/#table-pagination" rel="noopener noreferrer"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fu89dfur2fetw1fyzhjxo.png" alt="Tailwind CSS Table Pagination" width="800" height="682"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://flowbite.com/docs/plugins/datatables/#table-pagination" rel="noopener noreferrer"&gt;Get the HTML and JS code from here&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Selecting rows
&lt;/h2&gt;

&lt;p&gt;Use this example to enable the selection of rows by clicking anywhere one of the table row elements by copying setting the &lt;code&gt;multiselect&lt;/code&gt; option to &lt;code&gt;true&lt;/code&gt; and copying the JavaScript configuration from Flowbite.&lt;/p&gt;

&lt;p&gt;Use the &lt;code&gt;datatable.selectrow&lt;/code&gt; event to write your own code and get the data from the selected table row.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://flowbite.com/docs/plugins/datatables/#selecting-rows" rel="noopener noreferrer"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ffwdma3qhjljf9nkb3gjn.png" alt="Tailwind CSS Table Row Selection" width="800" height="860"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://flowbite.com/docs/plugins/datatables/#selecting-rows" rel="noopener noreferrer"&gt;Get the HTML and JS code from here&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Export files
&lt;/h2&gt;

&lt;p&gt;If you want to enable the export of the table data, you can use the &lt;code&gt;simpleDatatables.exportCSV&lt;/code&gt; function to export the data as a CSV file. The option is also available for TXT, JSON, and SQL formats.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://flowbite.com/docs/plugins/datatables/#export-files" rel="noopener noreferrer"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fdmqy0moohe3gbyah9hh8.png" alt="Tailwind CSS Table Export Files" width="800" height="606"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://flowbite.com/docs/plugins/datatables/#export-files" rel="noopener noreferrer"&gt;Get the HTML and JS code from here&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  JavaScript behaviour
&lt;/h2&gt;

&lt;p&gt;Learn more about how you can customize the DataTables plugin such as changing the default options, customizing the table appearance, dynamically loading data, and more by checking the examples below.&lt;/p&gt;

&lt;p&gt;After installing the DataTables plugin either via NPM or CDN you can initialize by calling the &lt;code&gt;DataTable&lt;/code&gt; constructor and passing the table selector as the first argument.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="c1"&gt;// if you installed via CDN&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;dataTable&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nx"&gt;simpleDatatables&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;DataTable&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;#default-table&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;

&lt;span class="c1"&gt;// if you installed via NPM&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nx"&gt;DataTable&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;simple-datatables&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;dataTable&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;DataTable&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;#default-table&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You can pass an object of options as the second argument to customize the table appearance and behavior.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;dataTable&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nx"&gt;simpleDatatables&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;DataTable&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;#default-table&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;options&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;After initializing the DataTable, you can access the instance methods and properties.&lt;/p&gt;

&lt;h2&gt;
  
  
  Options
&lt;/h2&gt;

&lt;p&gt;Check out some of the more commonly used options that you can pass to the DataTable instance.&lt;/p&gt;

&lt;h3&gt;
  
  
  Injecting data
&lt;/h3&gt;

&lt;p&gt;Use the &lt;code&gt;data&lt;/code&gt; option to pass data from an array of arrays to the table using JavaScript.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;const customData = {
    "headings": [
        "Name",
        "Company",
        "Date",
    ],
    "data": [
        [
            "Flowbite",
            "Bergside",
            "05/23/2023",
        ],
        [
            "Next.js",
            "Vercel",
            "03/12/2024",
    ],
};

const dataTable = new DataTable("#default-table", { data: customData });
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This is a useful feature where instead of a hard coded array you can pass data from an API or a JSON file.&lt;/p&gt;

&lt;h3&gt;
  
  
  Appearance
&lt;/h3&gt;

&lt;p&gt;Use the following options to customize the appearance of the table such as adding a caption, custom classes, footer, header, updating the HTML rendering template, and enabling vertical scrolling, and more.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;const dataTable = new DataTable("#default-table", {
    caption: "Flowbite is an open-source library",
    classes: {
        // add custom HTML classes, full list: https://fiduswriter.github.io/simple-datatables/documentation/classes
        // we recommend keeping the default ones in addition to whatever you want to add because Flowbite hooks to the default classes for styles
    },
    footer: true, // enable or disable the footer
    header: true, // enable or disable the header
    labels: {
        // add custom text for the labels, full list: https://fiduswriter.github.io/simple-datatables/documentation/labels
    },
    template: (options, dom) =&amp;gt; {
        // add custom HTML template for the table, full list: https://fiduswriter.github.io/simple-datatables/documentation/template
    },
    scrollY: "300px", // enable vertical scrolling
});
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;These options are useful if you want to add your own HTML elements inside the dynamically generated table header or footer as we used in the export a file example above.&lt;/p&gt;

&lt;h3&gt;
  
  
  Pagination
&lt;/h3&gt;

&lt;p&gt;Use these options to enable pagination, set the number of rows per page, and customize the appearance.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;const dataTable = new DataTable("#default-table", {
    paging: true, // enable or disable pagination
    perPage: 10, // set the number of rows per page
    perPageSelect: [5, 10, 20, 50], // set the number of rows per page options
    firstLast: true, // enable or disable the first and last buttons
    nextPrev: true, // enable or disable the next and previous buttons
});
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Pagination is a useful feature when you have a large dataset and you want to split it into multiple pages.&lt;/p&gt;

&lt;h3&gt;
  
  
  Searching
&lt;/h3&gt;

&lt;p&gt;These options can be used to enable searching, set the search placeholder, and customize the appearance.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;const dataTable = new DataTable("#default-table", {
    searchable: true, // enable or disable searching
    sensitivity: "base" // set the search sensitivity (base, accent, case, variant)
    searchQuerySeparator: " ", // set the search query separator
});
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The searching feature is great when you have a large dataset and you want to search for a specific row.&lt;/p&gt;

&lt;h3&gt;
  
  
  Sorting
&lt;/h3&gt;

&lt;p&gt;Use these options to enable sorting, set the default sort column, and customize the sort appearance.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;const dataTable = new DataTable("#default-table", {
    sortable: true, // enable or disable sorting
    locale: "en-US", // set the locale for sorting
    numeric: true, // enable or disable numeric sorting
    caseFirst: "false", // set the case first for sorting (upper, lower)
    ignorePunctuation: true // enable or disable punctuation sorting
});
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The sorting feature is useful when you want to sort the table rows based on a specific column.&lt;/p&gt;

&lt;h2&gt;
  
  
  Methods
&lt;/h2&gt;

&lt;p&gt;Check out some of the common methods that you can use to interact with the DataTable instance.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;// programatically search the table where the "term" variable is the query string
dataTable.search(term, columns);

// add a new table row data to the table (considering you have four columns)
dataTable.insert({
    "Heading 1": "Cell 1",
    "Heading 2": "Cell 2",
    "Heading 3": "Cell 3",
    "Heading 4": "Cell 4",
});

// updates the DOM of the table
dataTable.update();
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Credits
&lt;/h2&gt;

&lt;p&gt;These components could not have been built without the usage of the following awesome and open-source resources:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://github.com/fiduswriter/simple-datatables" rel="noopener noreferrer"&gt;simple-datatables&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://tailwindcss.com/" rel="noopener noreferrer"&gt;Tailwind CSS&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://flowbite.com/docs/getting-started/introduction/" rel="noopener noreferrer"&gt;Flowbite Library&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://flowbite.com/icons/" rel="noopener noreferrer"&gt;Flowbite Icons&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>tailwindcss</category>
      <category>flowbite</category>
      <category>webdev</category>
    </item>
    <item>
      <title>Product card components built with Tailwind CSS and Flowbite</title>
      <dc:creator>Zoltán Szőgyényi</dc:creator>
      <pubDate>Mon, 24 Jun 2024 11:20:33 +0000</pubDate>
      <link>https://forem.com/themesberg/product-card-components-built-with-tailwind-css-and-flowbite-383k</link>
      <guid>https://forem.com/themesberg/product-card-components-built-with-tailwind-css-and-flowbite-383k</guid>
      <description>&lt;p&gt;One of the most important sections and components of an e-commerce website is &lt;a href="https://flowbite.com/blocks/e-commerce/product-cards/" rel="noopener noreferrer"&gt;listing the products&lt;/a&gt; on the homepage or category page of a certain type of product. Within these cards you show images, names of the product, the price, reviews, buttons to add to the cart and more.&lt;/p&gt;

&lt;p&gt;Web development has grown a lot in the past years and e-commerce is an area that is crucial to know and understand as a developer since more and more people resort to purchasing online compared to traditional methods in shopping malls and stores.&lt;/p&gt;

&lt;p&gt;These components are all built only with the classes from Tailwind CSS and they leverage the design system and JS interactivity from the Flowbite framework and UI library.&lt;/p&gt;

&lt;p&gt;Without further ado, let's check these components!&lt;/p&gt;

&lt;h2&gt;
  
  
  Default list of product cards
&lt;/h2&gt;

&lt;p&gt;Use this example to show a list of product cards that feature a title, image, promotion badge, add to favorites and cart buttons, price, and list of reviews.&lt;/p&gt;

&lt;p&gt;This example is free and open-source.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://flowbite.com/blocks/e-commerce/product-cards/#default-list-of-product-cards" rel="noopener noreferrer"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fll91brwc7kmcguwd24c5.png" alt="Tailwind CSS Product Cards" width="800" height="616"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://flowbite.com/blocks/e-commerce/product-cards/#default-list-of-product-cards" rel="noopener noreferrer"&gt;Source code and example&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Product cards with carousel
&lt;/h2&gt;

&lt;p&gt;Use this example to show two product cards inside of a carousel component that features product images, description, reviews, pricing, color and quantity selection and add to cart buttons.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://flowbite.com/blocks/e-commerce/product-cards/#product-cards-with-carousel" rel="noopener noreferrer"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F6qi9zm2ggwpnxuk19cz0.png" alt="Tailwind CSS Products with carousel" width="800" height="432"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://flowbite.com/blocks/e-commerce/product-cards/#product-cards-with-carousel" rel="noopener noreferrer"&gt;Source code and example&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Product cards with sidebar filters
&lt;/h2&gt;

&lt;p&gt;This example can be used to show a sidebar with filters next to the product cards that feature size and color selection, images, prices, add to cart buttons, and more.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://flowbite.com/blocks/e-commerce/product-cards/#product-cards-with-sidebar-filters" rel="noopener noreferrer"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fs5w42xsptiz1lib88yw9.png" alt="Tailwind CSS E-commerce Sidebar Filters" width="800" height="608"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://flowbite.com/blocks/e-commerce/product-cards/#product-cards-with-sidebar-filters" rel="noopener noreferrer"&gt;Source code and example&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Product cards with grid view
&lt;/h2&gt;

&lt;p&gt;Use this example to show product cards within a grid layout and use filter options inside of a drawer component where you can search based on price, rating, color, size, and more.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://flowbite.com/blocks/e-commerce/product-cards/#product-cards-with-grid-view" rel="noopener noreferrer"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F3a5cy7ln9lr8l3uehfzq.png" alt="Tailwind CSS Products with grid view" width="800" height="631"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://flowbite.com/blocks/e-commerce/product-cards/#product-cards-with-grid-view" rel="noopener noreferrer"&gt;Source code and example&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Advanced product cards with filters
&lt;/h2&gt;

&lt;p&gt;Use this example to show an advanced settings bar with filter and sorting options and then a list of product cards with images inside a carousel, product title, pricing, CTA buttons, and more.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://flowbite.com/blocks/e-commerce/product-cards/#advanced-product-cards-with-filters" rel="noopener noreferrer"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Flacedgzh4z0foa9gyc59.png" alt="Tailwind CSS Advanced Product List Cards" width="800" height="652"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://flowbite.com/blocks/e-commerce/product-cards/#advanced-product-cards-with-filters" rel="noopener noreferrer"&gt;Source code and example&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Credits
&lt;/h2&gt;

&lt;p&gt;These components could not have been built without the usage of the following awesome open-source frameworks, UI libraries, and resources:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://tailwindcss.com/" rel="noopener noreferrer"&gt;Tailwind CSS&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://flowbite.com/docs/getting-started/introduction/" rel="noopener noreferrer"&gt;Flowbite&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://flowbite.com/icons/" rel="noopener noreferrer"&gt;Flowbite Icons&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>flowbite</category>
      <category>tailwindcss</category>
      <category>webdev</category>
      <category>html</category>
    </item>
    <item>
      <title>Mega footer component examples coded with Tailwind CSS and Flowbite</title>
      <dc:creator>Zoltán Szőgyényi</dc:creator>
      <pubDate>Thu, 20 Jun 2024 11:17:50 +0000</pubDate>
      <link>https://forem.com/themesberg/mega-footer-component-examples-coded-with-tailwind-css-and-flowbite-3ldl</link>
      <guid>https://forem.com/themesberg/mega-footer-component-examples-coded-with-tailwind-css-and-flowbite-3ldl</guid>
      <description>&lt;p&gt;Hey developers!&lt;/p&gt;

&lt;p&gt;Today I want to show you a couple of components and website sections that we've designed and developed over at Flowbite for e-commerce websites that are called &lt;a href="https://flowbite.com/blocks/e-commerce/mega-footers/" rel="noopener noreferrer"&gt;mega footers&lt;/a&gt;... because they're huge!&lt;/p&gt;

&lt;p&gt;These kind of footers are usually added for large websites with sitemaps, many categories, businesses that have mobile applications too and more. There are actually not a lot of these footer components available on the internet from UI frameworks.&lt;/p&gt;

&lt;p&gt;These examples are all coded exclusively with Tailwind CSS classes and we leveraged the JavaScript and styles from Flowbite to power interactive components like dropdowns.&lt;/p&gt;

&lt;p&gt;The first example is open-source and free under the MIT license and it includes almost everything that you need for such a large footer.&lt;/p&gt;

&lt;h2&gt;
  
  
  Default mega footer
&lt;/h2&gt;

&lt;p&gt;Use this example to show a footer with the a list of sitemap links, a CTA link to create an account, subscribe to the newsletter, buttons to download the mobile application and the trademark notice.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://flowbite.com/blocks/e-commerce/mega-footers/#default-mega-footer" rel="noopener noreferrer"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fz98s1wpyu6nezkeo2vhs.png" alt="Tailwind CSS Mega Footer" width="800" height="559"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://flowbite.com/blocks/e-commerce/mega-footers/#default-mega-footer" rel="noopener noreferrer"&gt;Source code and example&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Mega footer with language dropdown
&lt;/h2&gt;

&lt;p&gt;This example can be used to show a footer with sitemap links, a language dropdown menu, company logo, featured links and the trademark notice.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://flowbite.com/blocks/e-commerce/mega-footers/#mega-footer-with-language-dropdown" rel="noopener noreferrer"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F6lrjpu03h21kwlg809gp.png" alt="Tailwind CSS Mega Footer with dropdown" width="800" height="470"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://flowbite.com/blocks/e-commerce/mega-footers/#mega-footer-with-language-dropdown" rel="noopener noreferrer"&gt;Source code and example&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Mega footer with featured links
&lt;/h2&gt;

&lt;p&gt;Use this example of a footer section to show featured information, mobile app download buttons, certification links, sitemap links, a newsletter sign-up form, and more.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://flowbite.com/blocks/e-commerce/mega-footers/#mega-footer-with-featured-links" rel="noopener noreferrer"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F5dstq9oyid46taw7qjff.png" alt="Tailwind CSS Mega Footer with featured links" width="800" height="539"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://flowbite.com/blocks/e-commerce/mega-footers/#mega-footer-with-featured-links" rel="noopener noreferrer"&gt;Source code and example&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Mega footer with company logos
&lt;/h2&gt;

&lt;p&gt;This example can be used to showcase partnership company logos for social proof inside the footer together with sitemap links and trademark content.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://flowbite.com/blocks/e-commerce/mega-footers/#mega-footer-with-company-logos" rel="noopener noreferrer"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F4aoh67xyd8r3c5iuy8wz.png" alt="Tailwind CSS Mega Footer with company logos" width="800" height="419"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://flowbite.com/blocks/e-commerce/mega-footers/#mega-footer-with-company-logos" rel="noopener noreferrer"&gt;Source code and example&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Advanced mega footer
&lt;/h2&gt;

&lt;p&gt;Use this advanced example of a footer section to show a newsletter sign-up form, social media accounts, sitemap links, company logos, language selector and the trademark notice.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://flowbite.com/blocks/e-commerce/mega-footers/#advanced-mega-footer" rel="noopener noreferrer"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fjn5y3y9z951n943zrp4r.png" alt="Tailwind CSS Advanced Mega Footer" width="800" height="627"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://flowbite.com/blocks/e-commerce/mega-footers/#advanced-mega-footer" rel="noopener noreferrer"&gt;Source code and example&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Conclusion and credits
&lt;/h2&gt;

&lt;p&gt;We've done a lot of research and work to build these components and we could not have done them without the following awesome open-source frameworks and libraries:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://tailwindcss.com/" rel="noopener noreferrer"&gt;Tailwind CSS&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://flowbite.com/docs/getting-started/introduction/" rel="noopener noreferrer"&gt;Flowbite&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://flowbite.com/icons/" rel="noopener noreferrer"&gt;Flowbite Icons&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>flowbite</category>
      <category>tailwindcss</category>
      <category>webdev</category>
      <category>html</category>
    </item>
    <item>
      <title>Navbar components built for e-commerce with Tailwind CSS and Flowbite</title>
      <dc:creator>Zoltán Szőgyényi</dc:creator>
      <pubDate>Tue, 18 Jun 2024 09:37:34 +0000</pubDate>
      <link>https://forem.com/themesberg/navbar-components-built-for-e-commerce-with-tailwind-css-and-flowbite-423a</link>
      <guid>https://forem.com/themesberg/navbar-components-built-for-e-commerce-with-tailwind-css-and-flowbite-423a</guid>
      <description>&lt;p&gt;Hey devs!&lt;/p&gt;

&lt;p&gt;Today I want to show you a couple of &lt;a href="https://flowbite.com/blocks/e-commerce/navbars/" rel="noopener noreferrer"&gt;navbar components&lt;/a&gt; that we've designed and coded for the Flowbite ecosystem which are specifically thought out for e-commerce websites - which means that there's a focus on stuff like shopping carts, user dropdowns, categories and links, and more.&lt;/p&gt;

&lt;p&gt;E-commerce is an important and growing industry in the web area and even though there are more and more resources in this area like CMS's and frameworks, on the UI part resources are still lacking.&lt;/p&gt;

&lt;p&gt;All of the examples are built exclusively with Tailwind CSS which means that other than having Tailwind and Flowbite (for the JS) installed in your project you don't need anything else.&lt;/p&gt;

&lt;p&gt;Let's check these examples!&lt;/p&gt;

&lt;h2&gt;
  
  
  Default e-commerce navbar
&lt;/h2&gt;

&lt;p&gt;Use this example to show a navigation bar for e-commerce websites including a list of menu items, a shopping cart dropdown, a my account dropdown and a hamburger menu.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://flowbite.com/blocks/e-commerce/navbars/#default-e-commerce-navbar" rel="noopener noreferrer"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Frp4bf9qciq5a38e56hrz.png" alt="Tailwind CSS E-commerce Navbar" width="800" height="330"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://flowbite.com/blocks/e-commerce/navbars/#default-e-commerce-navbar" rel="noopener noreferrer"&gt;Source code and example&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Centered e-commerce navbar
&lt;/h2&gt;

&lt;p&gt;Use this example to show a double layered navigation bar with the logo centered and with a secondary menu, shopping cart dropdown and user account menu.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://flowbite.com/blocks/e-commerce/navbars/#centered-e-commerce-navbar" rel="noopener noreferrer"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fqm5gmv3e9nys41jy9ypu.png" alt="Tailwind CSS centered navbar" width="800" height="414"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://flowbite.com/blocks/e-commerce/navbars/#centered-e-commerce-navbar" rel="noopener noreferrer"&gt;Source code and example&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Navbar with modal search
&lt;/h2&gt;

&lt;p&gt;Use this example to show an advanced search modal for e-commerce products inside of a navbar with a mega menu, shopping cart and user dropdown.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://flowbite.com/blocks/e-commerce/navbars/#navbar-with-modal-search" rel="noopener noreferrer"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fdd0npbethn218mrctf1u.png" alt="Tailwind CSS Navbar with modal search" width="800" height="617"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://flowbite.com/blocks/e-commerce/navbars/#navbar-with-modal-search" rel="noopener noreferrer"&gt;Source code and example&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Navbar with search bar and submenu
&lt;/h2&gt;

&lt;p&gt;Use this example to show a navbar for e-commerce websites with a search bar, dropdown menus, delivery location selectors, language selectors and a submenu list.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://flowbite.com/blocks/e-commerce/navbars/#navbar-with-search-bar-and-submenu" rel="noopener noreferrer"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fm3rz0mo8ydjcjcgxp3qt.png" alt="Tailwind CSS navbar with search and submenu" width="800" height="422"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://flowbite.com/blocks/e-commerce/navbars/#navbar-with-search-bar-and-submenu" rel="noopener noreferrer"&gt;Source code and example&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Navbar with advanced user dropdown
&lt;/h2&gt;

&lt;p&gt;Use this example to show three levels inside of a navbar component including a promotional banner, shopping cart and user dropdowns, a search bar and a mega menu with categories.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://flowbite.com/blocks/e-commerce/navbars/#navbar-with-advanced-user-dropdown" rel="noopener noreferrer"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F4m628ndacn5hp6j4qkpm.png" alt="Tailwind CSS navbar with user dropdown" width="800" height="439"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://flowbite.com/blocks/e-commerce/navbars/#navbar-with-advanced-user-dropdown" rel="noopener noreferrer"&gt;Source code and example&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Advanced navigation bar with mega menu
&lt;/h2&gt;

&lt;p&gt;Use this example to show a four layered navigation that includes an announcement banner, dropdown menus for language, shopping cart, user settings, a search bar and a mega menu.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://flowbite.com/blocks/e-commerce/navbars/#advanced-navigation-bar-with-mega-menu" rel="noopener noreferrer"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F9gqm6jhg1ls81i4rxfn2.png" alt="Tailwind CSS advanced navbar" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://flowbite.com/blocks/e-commerce/navbars/#advanced-navigation-bar-with-mega-menu" rel="noopener noreferrer"&gt;Source code and example&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Conclusion and credits
&lt;/h2&gt;

&lt;p&gt;These UI components and examples could not have been built without the usage of the following awesome and open-source libraries and frameworks:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://tailwindcss.com/" rel="noopener noreferrer"&gt;Tailwind CSS&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://flowbite.com/docs/getting-started/introduction/" rel="noopener noreferrer"&gt;Flowbite&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://flowbite.com/icons/" rel="noopener noreferrer"&gt;Flowbite Icons&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>flowbite</category>
      <category>tailwindcss</category>
      <category>webdev</category>
      <category>html</category>
    </item>
    <item>
      <title>Tailwind CSS Refund Form Component Examples</title>
      <dc:creator>Zoltán Szőgyényi</dc:creator>
      <pubDate>Wed, 12 Jun 2024 09:49:09 +0000</pubDate>
      <link>https://forem.com/themesberg/tailwind-css-refund-form-component-examples-78a</link>
      <guid>https://forem.com/themesberg/tailwind-css-refund-form-component-examples-78a</guid>
      <description>&lt;p&gt;Hey developers!&lt;/p&gt;

&lt;p&gt;In this article I want to show you a collection of &lt;a href="https://flowbite.com/blocks/e-commerce/refund-forms/" rel="noopener noreferrer"&gt;refund form components&lt;/a&gt; coded with Tailwind CSS based on the Flowbite UI library that you can use in your e-commerce projects to receive refund requests and collect as much information as you can.&lt;/p&gt;

&lt;p&gt;E-commerce is an important part of the internet and it has been an area in web development that has been expanding quite a lot with frameworks, CMS systems and the need for UI components has been growing.&lt;/p&gt;

&lt;p&gt;All of these components are coded only with Tailwind CSS components and we used the Flowbite UI Library as the baseline for these examples and the icons from the Flowbite Icons collection.&lt;/p&gt;

&lt;p&gt;Let's get started!&lt;/p&gt;

&lt;h2&gt;
  
  
  Product refund selection form
&lt;/h2&gt;

&lt;p&gt;Use this component to select one or multiple products that you've ordered for a refund request and follow the next steps from the stepper form.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://flowbite.com/blocks/e-commerce/refund-forms/#product-refund-selection-form" rel="noopener noreferrer"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F89fsg3xuftzkqwoi1aor.png" alt="Tailwind CSS Refund form" width="800" height="653"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://flowbite.com/blocks/e-commerce/refund-forms/#product-refund-selection-form" rel="noopener noreferrer"&gt;View source code and example&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Refund reason selection
&lt;/h2&gt;

&lt;p&gt;This example can be used to collect data for the reasoning of the refund which is a necessary step in the request of the returning of a product.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://flowbite.com/blocks/e-commerce/refund-forms/#refund-reason-selection" rel="noopener noreferrer"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F6aejppmncewi90yf6mg3.png" alt="Tailwind CSS Refund Selection" width="800" height="704"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://flowbite.com/blocks/e-commerce/refund-forms/#refund-reason-selection" rel="noopener noreferrer"&gt;View source code and example&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Refund shipment method
&lt;/h2&gt;

&lt;p&gt;This example can be used to provide shipping methods for the returning of the product based on the refund requested by the client.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://flowbite.com/blocks/e-commerce/refund-forms/#refund-shipment-method" rel="noopener noreferrer"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fcyworpma5jb6mnm22hf4.png" alt="Tailwind CSS Refund Shipment Method" width="800" height="474"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://flowbite.com/blocks/e-commerce/refund-forms/#refund-shipment-method" rel="noopener noreferrer"&gt;View source code and example&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Refund payment options
&lt;/h2&gt;

&lt;p&gt;Use this example to show multiple payment options using checkbox elements for the user to choose from the refund request form.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://flowbite.com/blocks/e-commerce/refund-forms/#refund-payment-options" rel="noopener noreferrer"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fu0wj93gkv0zc89f4vpym.png" alt="Tailwind CSS Refund Payment Options" width="800" height="414"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://flowbite.com/blocks/e-commerce/refund-forms/#refund-payment-options" rel="noopener noreferrer"&gt;View source code and example&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Refund request success
&lt;/h2&gt;

&lt;p&gt;This example can be used to show the final step of the refund request process by showing a success message and a CTA button that links to the status page.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://flowbite.com/blocks/e-commerce/refund-forms/#refund-request-success" rel="noopener noreferrer"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fbs62y78qa7e7vxc8zbxh.png" alt="Tailwind CSS Refund Request Success" width="800" height="402"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://flowbite.com/blocks/e-commerce/refund-forms/#refund-request-success" rel="noopener noreferrer"&gt;View source code and example&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Credits and conclusion
&lt;/h2&gt;

&lt;p&gt;These components could not have been created without the usage of the following open-source frameworks, libraries, and collections:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://tailwindcss.com/" rel="noopener noreferrer"&gt;Tailwind CSS&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://flowbite.com/docs/getting-started/introduction/" rel="noopener noreferrer"&gt;Flowbite Library&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://flowbite.com/icons/" rel="noopener noreferrer"&gt;Flowbite Icons&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>tailwindcss</category>
      <category>flowbite</category>
      <category>ecommerce</category>
      <category>webdev</category>
    </item>
    <item>
      <title>Payment form components coded with Tailwind CSS and Flowbite</title>
      <dc:creator>Zoltán Szőgyényi</dc:creator>
      <pubDate>Wed, 22 May 2024 10:19:32 +0000</pubDate>
      <link>https://forem.com/themesberg/payment-form-components-coded-with-tailwind-css-and-flowbite-3e3m</link>
      <guid>https://forem.com/themesberg/payment-form-components-coded-with-tailwind-css-and-flowbite-3e3m</guid>
      <description>&lt;p&gt;E-commerce is a growing part of the modern web and we as developers and designers need to find solutions and the best UI resources to build these kind of pages and components.&lt;/p&gt;

&lt;p&gt;The &lt;a href="https://flowbite.com/blocks/e-commerce/payment-forms/" rel="noopener noreferrer"&gt;payment form&lt;/a&gt; is a complex and crucial part of the checkout process where you need to ensure a smooth experience for the user and also offer as many payment options as possible.&lt;/p&gt;

&lt;p&gt;We've coded a collection of components using Tailwind CSS and the UI library from Flowbite that allows you to directly copy-paste these sections and components into your project and choose which section matches best with your project.&lt;/p&gt;

&lt;p&gt;The examples include input fields for credit cards, crypto payments, direct wire transfers, and a lot more leveraging Tailwind CSS and Flowbite.&lt;/p&gt;

&lt;p&gt;Let's check them out!&lt;/p&gt;

&lt;h2&gt;
  
  
  Default payment form
&lt;/h2&gt;

&lt;p&gt;Use this component to make a purchase using a credit card by show input fields like the card number, full name, card expiration using a datepicker and the security code.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://flowbite.com/blocks/e-commerce/payment-forms/#default-payment-form" rel="noopener noreferrer"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F7kjuyvtio74f181a4zc9.png" alt="Tailwind CSS Payment Form" width="800" height="355"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://flowbite.com/blocks/e-commerce/payment-forms/#default-payment-form" rel="noopener noreferrer"&gt;Source code and examples&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Payment form with stepper
&lt;/h2&gt;

&lt;p&gt;Use this example to show the last step from the checkout process by indicating a stepper timeline and also show a list of alternative payment methods using buttons.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://flowbite.com/blocks/e-commerce/payment-forms/#payment-form-with-stepper" rel="noopener noreferrer"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fvn05ubv3ujbqhx4sw9cc.png" alt="Tailwind CSS Payment Form with Stepper" width="800" height="536"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://flowbite.com/blocks/e-commerce/payment-forms/#payment-form-with-stepper" rel="noopener noreferrer"&gt;Source code and examples&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Payment form with options
&lt;/h2&gt;

&lt;p&gt;Use this example of a payment form to select a previously used credit card and show a sidebar with an order summary and commercial information.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://flowbite.com/blocks/e-commerce/payment-forms/#payment-form-with-options" rel="noopener noreferrer"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fzwy9sznz485kcxgs4n12.png" alt="Tailwind CSS Payment Form with options" width="800" height="570"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://flowbite.com/blocks/e-commerce/payment-forms/#payment-form-with-options" rel="noopener noreferrer"&gt;Source code and examples&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Payment form with tabs
&lt;/h2&gt;

&lt;p&gt;Use this component to show multiple payment methods with tabs including credit card, monthly fees, crypto and PayPal transfers.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://flowbite.com/blocks/e-commerce/payment-forms/#payment-form-with-tabs" rel="noopener noreferrer"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fjtczteyd2ronx2y9vg6z.png" alt="Tailwind CSS Payment Form with tabs" width="800" height="475"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://flowbite.com/blocks/e-commerce/payment-forms/#payment-form-with-tabs" rel="noopener noreferrer"&gt;Source code and examples&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Payment form with wire transfer
&lt;/h2&gt;

&lt;p&gt;Use this example to send a wire transfer by completing payment data such as the IBAN address, payment amount, bank address and more using input fields.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://flowbite.com/blocks/e-commerce/payment-forms/#payment-form-with-wire-transfer" rel="noopener noreferrer"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fsvrsmbsdxodwhzljaj8z.png" alt="Tailwind CSS payment form with wire transfers" width="800" height="568"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://flowbite.com/blocks/e-commerce/payment-forms/#payment-form-with-wire-transfer" rel="noopener noreferrer"&gt;Source code and examples&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Payment form with copy to clipboard inputs
&lt;/h2&gt;

&lt;p&gt;Use this example to copy the value of predefined input fields where you can get the beneficiary name, address, currency, amount, and account number.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://flowbite.com/blocks/e-commerce/payment-forms/#payment-form-with-copy-to-clipboard-inputs" rel="noopener noreferrer"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Feob0ox52cekyqcir2shp.png" alt="Tailwind CSS Payment with clipboard inputs" width="800" height="503"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://flowbite.com/blocks/e-commerce/payment-forms/#payment-form-with-copy-to-clipboard-inputs" rel="noopener noreferrer"&gt;Source code and examples&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Payment form with drawer
&lt;/h2&gt;

&lt;p&gt;Use this component to show all the payment methods and actions for an e-commerce website inside of a drawer component that can be shown or hidden based on the click of a button.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://flowbite.com/blocks/e-commerce/payment-forms/#payment-form-with-drawer" rel="noopener noreferrer"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F6ys61yr7oq6n7jplgri1.png" alt="Tailwind CSS Payment form with drawer" width="800" height="561"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://flowbite.com/blocks/e-commerce/payment-forms/#payment-form-with-drawer" rel="noopener noreferrer"&gt;Source code and examples&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Payment form with modal
&lt;/h2&gt;

&lt;p&gt;This example can be used to select a payment method or add the credit card details using input fields inside of a modal component.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://flowbite.com/blocks/e-commerce/payment-forms/#payment-form-with-modal" rel="noopener noreferrer"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fi7oznt8pb2g1ke7x787k.png" alt="Tailwind CSS Payment form with modal" width="800" height="539"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://flowbite.com/blocks/e-commerce/payment-forms/#payment-form-with-modal" rel="noopener noreferrer"&gt;Source code and examples&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Credits
&lt;/h2&gt;

&lt;p&gt;Big thanks to all of the following open-source frameworks and libraries that were used to build these components:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://tailwindcss.com/" rel="noopener noreferrer"&gt;Tailwind CSS&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://flowbite.com/" rel="noopener noreferrer"&gt;Flowbite&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://flowbite.com/icons/" rel="noopener noreferrer"&gt;Flowbite Icons&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>tailwindcss</category>
      <category>flowbite</category>
      <category>webdev</category>
      <category>javascript</category>
    </item>
    <item>
      <title>E-commerce checkout components built with Tailwind CSS and Flowbite</title>
      <dc:creator>Zoltán Szőgyényi</dc:creator>
      <pubDate>Tue, 07 May 2024 15:55:40 +0000</pubDate>
      <link>https://forem.com/themesberg/e-commerce-checkout-components-built-with-tailwind-css-and-flowbite-3h6e</link>
      <guid>https://forem.com/themesberg/e-commerce-checkout-components-built-with-tailwind-css-and-flowbite-3h6e</guid>
      <description>&lt;p&gt;The e-commerce web industry has been growing in the past several years and it is one of the important types of products that we as web developers and designers have to work one. These websites require special attention when it comes to conversion rates and user experience.&lt;/p&gt;

&lt;p&gt;In this article I'll show you a couple of &lt;a href="https://flowbite.com/blocks/e-commerce/checkout/" rel="noopener noreferrer"&gt;checkout UI components&lt;/a&gt; built with the utility-first framework called Tailwind CSS and we also leverage the components and JS from Flowbite.&lt;/p&gt;

&lt;p&gt;You can copy-paste these components and they will work out of the box as long as you have both Tailwind CSS and Flwobite installed in your project.&lt;/p&gt;

&lt;h2&gt;
  
  
  Default checkout page
&lt;/h2&gt;

&lt;p&gt;Use this component to show a form element with inputs to add delivery and payment information and a table with an overview of the final price.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://flowbite.com/blocks/e-commerce/checkout/#default-checkout-page" rel="noopener noreferrer"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fjpu2dxhmv0040b5adbrk.png" alt="Tailwind CSS checkout page" width="800" height="632"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://flowbite.com/blocks/e-commerce/checkout/#default-checkout-page" rel="noopener noreferrer"&gt;Source code and preview&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Checkout page with accordion
&lt;/h2&gt;

&lt;p&gt;Use this example to show delivery information, payment methods and the list of products inside of an accordion component.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://flowbite.com/blocks/e-commerce/checkout/#checkout-page-with-accordion" rel="noopener noreferrer"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fk29suwq0j7tugx7c1oeh.png" alt="Tailwind CSS checkout page with accordion" width="800" height="649"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://flowbite.com/blocks/e-commerce/checkout/#checkout-page-with-accordion" rel="noopener noreferrer"&gt;Source code and preview&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Checkout page with products
&lt;/h2&gt;

&lt;p&gt;Use this example to show a list of products on the checkout page and a toggle selector for individual and company details.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://flowbite.com/blocks/e-commerce/checkout/#checkout-page-with-products" rel="noopener noreferrer"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fa2a8b8h8wx3vk4r3nr6c.png" alt="Tailwind CSS checkout page with products" width="800" height="662"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://flowbite.com/blocks/e-commerce/checkout/#checkout-page-with-products" rel="noopener noreferrer"&gt;Source code and preview&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Order checkout with drawer
&lt;/h2&gt;

&lt;p&gt;This example can be used to add all checkout related details such as the order summary, shipping details and payment information inside a drawer component.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://flowbite.com/blocks/e-commerce/checkout/#order-checkout-with-drawer" rel="noopener noreferrer"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fbrwu7qy0pmuqyjransgj.png" alt="Tailwind CSS checkout page with drawer" width="800" height="642"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://flowbite.com/blocks/e-commerce/checkout/#order-checkout-with-drawer" rel="noopener noreferrer"&gt;Source code and preview&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Order checkout with modal
&lt;/h2&gt;

&lt;p&gt;Use this example to show the checkout details inside of a modal component such as the price breakdown, delivery details and payment information.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://flowbite.com/blocks/e-commerce/checkout/#order-checkout-with-modal" rel="noopener noreferrer"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fqkc14qimgi3pmt3nsqfo.png" alt="Tailwind CSS checkout with modal" width="800" height="644"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://flowbite.com/blocks/e-commerce/checkout/#order-checkout-with-modal" rel="noopener noreferrer"&gt;Source code and preview&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Credits
&lt;/h2&gt;

&lt;p&gt;These components could not have been built without the usage of the following awesome and open-source UI libraries and frameworks:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://tailwindcss.com/" rel="noopener noreferrer"&gt;Tailwind CSS&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://flowbite.com/docs/getting-started/introduction/" rel="noopener noreferrer"&gt;Flowbite&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://flowbite.com/icons/" rel="noopener noreferrer"&gt;Flowbite Icons&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>tailwindcss</category>
      <category>flowbite</category>
      <category>webdev</category>
      <category>javascript</category>
    </item>
  </channel>
</rss>
