diff --git a/components/doc/iconfield/theming/tailwinddoc.js b/components/doc/iconfield/theming/tailwinddoc.js
new file mode 100644
index 0000000000..de24dd8fef
--- /dev/null
+++ b/components/doc/iconfield/theming/tailwinddoc.js
@@ -0,0 +1,77 @@
+import { DocSectionCode } from '@/components/doc/common/docsectioncode';
+import { DocSectionText } from '@/components/doc/common/docsectiontext';
+import Link from 'next/link';
+
+export function TailwindDoc(props) {
+ const code = {
+ basic: `
+const Tailwind = {
+ iconfield: {
+ root: {
+ className: classNames('relative')
+ }
+ },
+ inputicon: {
+ root: ({ context }) => ({
+ className: classNames('absolute top-1/2 -mt-2', {
+ 'left-2': context.iconPosition === 'left',
+ 'right-2': context.iconPosition === 'right'
+ })
+ })
+ },
+ // For each input wrapped with IconField you will need to add styling.
+ // The following is an example for InputText
+ inputtext: {
+ root: ({ props, context }) => ({
+ className: classNames(
+ // Extend the root stylings with the following:
+ {
+ 'pl-8': context.iconPosition === 'left',
+ 'pr-8': props.iconPosition === 'right'
+ }
+ )
+ })
+ },
+}
+ `
+ };
+
+ const code2 = {
+ javascript: `
+import React from 'react';
+import { IconField } from 'primereact/iconfield';
+import { InputIcon } from 'primereact/inputicon';
+import { InputText } from 'primereact/inputtext';
+
+export default function BasicDemo() {
+ return (
+
+
+
+
+
+
+
+
+
+
+
+ )
+}
+ `
+ };
+
+ return (
+ <>
+
+
+ PrimeReact offers a built-in Tailwind theme to get you started quickly. The default values related to the component are displayed below. The component can easily be styled with your own design based on Tailwind utilities, see the{' '}
+ Tailwind Customization section for an example.
+
+
+
A playground sample with the pre-built Tailwind theme.