-
{{< twsnippet/wrapper "tailwind.config.js" "" "mobile" >}}
{{< twsnippet/code active=true lang="JavaScript" >}}
/** @type {import('tailwindcss').Config} */
@@ -155,12 +155,12 @@
"./nuxt.config.{js,ts}",
"./app.vue",
"./node_modules/tw-elements/dist/js/**/*.js"
- ],
- theme: {
+ ],
+ theme: {
extend: {},
- },
- darkMode: "class",
- plugins: [require("tw-elements/dist/plugin.cjs")]
+ },
+ darkMode: "class",
+ plugins: [require("tw-elements/dist/plugin.cjs")]
}
{{< /twsnippet/code >}}
{{< /twsnippet/wrapper >}}
diff --git a/site/content/docs/standard/integrations/react/index.html b/site/content/docs/standard/integrations/react/index.html
index 2fda23f0c..5b49344c5 100644
--- a/site/content/docs/standard/integrations/react/index.html
+++ b/site/content/docs/standard/integrations/react/index.html
@@ -482,22 +482,22 @@
-
- {{< twsnippet/wrapper "tailwind.config.js" "" "mobile">}}
+ {{< twsnippet/wrapper "tailwind.config.js" "" "mobile" >}}
{{< twsnippet/code active=true lang="JavaScript" >}}
/** @type {import('tailwindcss').Config} */
module.exports = {
- content: [
- "./index.html",
- "./src/**/*.{js,ts,jsx,tsx}",
- "./node_modules/tw-elements/dist/js/**/*.js"
- ],
- theme: {
- extend: {},
- },
- darkMode: "class",
- plugins: [require("tw-elements/dist/plugin.cjs")]
+ content: [
+ "./index.html",
+ "./src/**/*.{js,ts,jsx,tsx}",
+ "./node_modules/tw-elements/dist/js/**/*.js"
+ ],
+ theme: {
+ extend: {},
+ },
+ darkMode: "class",
+ plugins: [require("tw-elements/dist/plugin.cjs")]
}
{{< /twsnippet/code >}}
{{< /twsnippet/wrapper >}}
@@ -554,34 +554,37 @@
Step 6
initTE
. Initialize
initTE
in a lifecycle method.
+
@@ -611,41 +614,44 @@
Step 1
lifecycle hook.
+
diff --git a/site/content/docs/standard/integrations/remix/index.html b/site/content/docs/standard/integrations/remix/index.html
index 5eafa9ccd..b282f8733 100644
--- a/site/content/docs/standard/integrations/remix/index.html
+++ b/site/content/docs/standard/integrations/remix/index.html
@@ -134,21 +134,21 @@
Step 3
tailwind.config.cjs
file.
+
-
{{< twsnippet/wrapper "tailwind.config.cjs" "" "mobile" >}}
{{< twsnippet/code active=true lang="JavaScript" >}}
/** @type {import('tailwindcss').Config} */
module.exports = {
- content: [
+ content: [
"./app/**/*.{js,jsx,ts,tsx}"
"./node_modules/tw-elements/dist/js/**/*.js"
- ],
- theme: {
+ ],
+ theme: {
extend: {},
- },
- darkMode: "class",
- plugins: [require("tw-elements/dist/plugin.cjs")]
+ },
+ darkMode: "class",
+ plugins: [require("tw-elements/dist/plugin.cjs")]
}
{{< /twsnippet/code >}}
{{< /twsnippet/wrapper >}}
@@ -214,34 +214,37 @@
Step 6
Initialize
initTE
in a lifecycle method.
+
@@ -264,19 +267,20 @@
Step 8
wrapping it into
ClientOnly
element.
+
-
{{< twsnippet/wrapper "root.jsx" "" "mobile" >}}
- {{< twsnippet/code active=true lang="jsx" >}}
- import { ClientOnly } from "remix-utils";
- import MyDatepicker from "./components/MyDatepicker.client";
-
- ...
- export default function App() {
- return (
- ...
- {() => }
- ); }
+ {{< twsnippet/code active=true lang="jsx" >}}
+ import { ClientOnly } from "remix-utils";
+ import MyDatepicker from "./components/MyDatepicker.client";
+
+ ...
+ export default function App() {
+ return (
+ ...
+ {() => }
+ );
+ }
{{< /twsnippet/code >}}
{{< /twsnippet/wrapper >}}
@@ -306,8 +310,8 @@
Step 1
lifecycle hook.
+
-
{{< twsnippet/wrapper "MyDatepicker.client.jsx" "" "mobile" >}}
{{< twsnippet/code active=true lang="jsx" >}}
import { useEffect } from "react";
@@ -326,18 +330,21 @@
Step 1
}, []);
return (
-
-
-
-
- ); }; export default MyDatepicker;
+
+
+
+
+ );
+ };
+
+ export default MyDatepicker;
{{< /twsnippet/code >}}
{{< /twsnippet/wrapper >}}
diff --git a/site/content/docs/standard/integrations/solid/index.html b/site/content/docs/standard/integrations/solid/index.html
index 1a66353c5..28e11b372 100644
--- a/site/content/docs/standard/integrations/solid/index.html
+++ b/site/content/docs/standard/integrations/solid/index.html
@@ -123,21 +123,21 @@
Step 2
tailwind.config.cjs
file.
+
-
{{< twsnippet/wrapper "tailwind.config.cjs" "" "mobile" >}}
{{< twsnippet/code active=true lang="JavaScript" >}}
/** @type {import('tailwindcss').Config} */
module.exports = {
- content: [
+ content: [
"./src/**/*.{js,jsx,ts,tsx}",
"./node_modules/tw-elements/dist/js/**/*.js"
- ],
- theme: {
+ ],
+ theme: {
extend: {},
- },
- darkMode: "class",
- plugins: [require("tw-elements/dist/plugin.cjs")]
+ },
+ darkMode: "class",
+ plugins: [require("tw-elements/dist/plugin.cjs")]
}
{{< /twsnippet/code >}}
{{< /twsnippet/wrapper >}}
diff --git a/site/content/docs/standard/integrations/svelte/index.html b/site/content/docs/standard/integrations/svelte/index.html
index c4505d27a..0ab63fc59 100644
--- a/site/content/docs/standard/integrations/svelte/index.html
+++ b/site/content/docs/standard/integrations/svelte/index.html
@@ -128,21 +128,21 @@
Step 2
tailwind.config.cjs
file.
+
-
{{< twsnippet/wrapper "tailwind.config.cjs" "" "mobile" >}}
{{< twsnippet/code active=true lang="JavaScript" >}}
/** @type {import('tailwindcss').Config} */
module.exports = {
- content: [
+ content: [
"./src/**/*.{html,js,svelte,ts}",
"./node_modules/tw-elements/dist/js/**/*.js"
- ],
- theme: {
+ ],
+ theme: {
extend: {},
- },
- darkMode: "class",
- plugins: [require("tw-elements/dist/plugin.cjs")]
+ },
+ darkMode: "class",
+ plugins: [require("tw-elements/dist/plugin.cjs")]
}
{{< /twsnippet/code >}}
{{< /twsnippet/wrapper >}}
diff --git a/site/content/docs/standard/integrations/vue/index.html b/site/content/docs/standard/integrations/vue/index.html
index dbc01da91..0fbe2a318 100644
--- a/site/content/docs/standard/integrations/vue/index.html
+++ b/site/content/docs/standard/integrations/vue/index.html
@@ -142,22 +142,22 @@
Step 2
tailwind.config.cjs
file.
+
-
{{< twsnippet/wrapper "tailwind.config.cjs" "" "mobile" >}}
{{< twsnippet/code active=true lang="JavaScript" >}}
/** @type {import('tailwindcss').Config} */
module.exports = {
- content: [
+ content: [
"./index.html",
"./src/**/*.{vue,js,ts,jsx,tsx}",
"./node_modules/tw-elements/dist/js/**/*.js"
- ],
- theme: {
+ ],
+ theme: {
extend: {},
- },
- darkMode: "class",
- plugins: [require("tw-elements/dist/plugin.cjs")]
+ },
+ darkMode: "class",
+ plugins: [require("tw-elements/dist/plugin.cjs")]
}
{{< /twsnippet/code >}}
{{< /twsnippet/wrapper >}}