diff --git a/components/doc/stepper/theming/unstyleddoc.js b/components/doc/stepper/theming/unstyleddoc.js new file mode 100644 index 0000000000..36d8b59869 --- /dev/null +++ b/components/doc/stepper/theming/unstyleddoc.js @@ -0,0 +1,36 @@ +import { DocSectionCode } from '@/components/doc/common/docsectioncode'; +import { DocSectionText } from '@/components/doc/common/docsectiontext'; + +export const UnstyledDoc = (props) => { + const code = { + basic: ` + + + Content of Step 1 + stepperRef.current.nextCallback()} /> + + + Content of Step 2 + stepperRef.current.prevCallback()} className="mr-2" /> + stepperRef.current.nextCallback()} /> + + + Content of Step 3 + stepperRef.current.prevCallback()} /> + + + ` + }; + + return ( + <> + + + Theming is implemented with pass-through properties in unstyled mode. + This allows you to apply your own styling or integrate with Tailwind. + + + + > + ); +}; diff --git a/package-lock.json b/package-lock.json index c6bbb02a39..939ff61bf7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "primereact", - "version": "10.9.6", + "version": "10.9.7", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "primereact", - "version": "10.9.6", + "version": "10.9.7", "dependencies": { "@docsearch/react": "3.9.0", "chart.js": "4.5.0", diff --git a/pages/stepper/index.js b/pages/stepper/index.js index 69da8c0eb7..fcd7f4cd20 100644 --- a/pages/stepper/index.js +++ b/pages/stepper/index.js @@ -6,6 +6,7 @@ import { ImportDoc } from '@/components/doc/stepper/importdoc'; import { LinearDoc } from '@/components/doc/stepper/lineardoc'; import { Wireframe } from '@/components/doc/stepper/pt/wireframe'; import { StyledDoc } from '@/components/doc/stepper/theming/styleddoc'; +import { UnstyledDoc } from '@/components/doc/stepper/theming/unstyleddoc'; import { TailwindDoc } from '@/components/doc/stepper/theming/tailwinddoc'; import { VerticalDoc } from '@/components/doc/stepper/verticaldoc'; import { HeaderDoc } from '@/components/doc/stepper/headerdoc'; @@ -70,14 +71,12 @@ const StepperDemo = () => { { id: 'unstyled', label: 'Unstyled', - description: 'Theming is implemented with the pass through properties in unstyled mode.', - children: [ - { - id: 'tailwind', - label: 'Tailwind', - component: TailwindDoc - } - ] + component: UnstyledDoc + }, + { + id: 'tailwind', + label: 'Tailwind', + component: TailwindDoc } ];
Content of Step 1
Content of Step 2
Content of Step 3
+ Theming is implemented with pass-through properties in unstyled mode. + This allows you to apply your own styling or integrate with Tailwind. +