diff --git a/packages/canon/src/components/Button/Button.tsx b/packages/canon/src/components/Button/Button.tsx index 081d09a1d5..a186aada39 100644 --- a/packages/canon/src/components/Button/Button.tsx +++ b/packages/canon/src/components/Button/Button.tsx @@ -14,6 +14,8 @@ * limitations under the License. */ +'use client'; + import React, { forwardRef } from 'react'; import { Icon } from '../Icon'; import { ButtonProps } from './types'; diff --git a/packages/canon/src/components/Heading/Heading.tsx b/packages/canon/src/components/Heading/Heading.tsx index 612c871ebb..1ac9f7d997 100644 --- a/packages/canon/src/components/Heading/Heading.tsx +++ b/packages/canon/src/components/Heading/Heading.tsx @@ -14,6 +14,8 @@ * limitations under the License. */ +'use client'; + import React, { forwardRef } from 'react'; import { HeadingProps } from './types'; import { useCanon } from '../../contexts/canon'; diff --git a/packages/canon/src/components/Icon/Icon.tsx b/packages/canon/src/components/Icon/Icon.tsx index 1df46c8a78..d4dbf601e3 100644 --- a/packages/canon/src/components/Icon/Icon.tsx +++ b/packages/canon/src/components/Icon/Icon.tsx @@ -14,6 +14,8 @@ * limitations under the License. */ +'use client'; + import React from 'react'; import { useCanon } from '../../contexts/canon'; import type { IconProps } from './types'; diff --git a/packages/canon/src/components/Text/Text.tsx b/packages/canon/src/components/Text/Text.tsx index 1359a0e4c5..dd0baf3f8e 100644 --- a/packages/canon/src/components/Text/Text.tsx +++ b/packages/canon/src/components/Text/Text.tsx @@ -14,6 +14,8 @@ * limitations under the License. */ +'use client'; + import React, { forwardRef } from 'react'; import { TextProps } from './types'; import { useCanon } from '../../contexts/canon'; diff --git a/packages/canon/src/contexts/canon.tsx b/packages/canon/src/contexts/canon.tsx index 5a0e6b4315..92b36ce396 100644 --- a/packages/canon/src/contexts/canon.tsx +++ b/packages/canon/src/contexts/canon.tsx @@ -14,6 +14,8 @@ * limitations under the License. */ +'use client'; + import React, { createContext, useContext, ReactNode } from 'react'; import { IconMap, IconNames } from '../components/Icon/types'; import { icons } from '../components/Icon/icons';