Use Metadata

const metadata = useMetadata();


The useMetadata hook provides the metadata present on the item used to initialize the player.

The hook returns an object with the metadata.

It is used to build the Product Description Display component

Code Examples

import { useMetadata } from '@threekit-tools/treble';

const MetadataComponent = () => {
  const metadata = useMetadata();
  return (
      {Object.entries(metadata).map(([key, value], i) => (
          {key}: {value}