Sanity Library Reference Docs
    Preparing search index...
    • Returns the tile view.

      Throws when the component does not render in a tile view.

      Returns {
          view: ApplicationInterfaceBase & {
              metadata: { order?: number; size: "small" | "large" | "banner" };
              type: "tile";
          };
      }

      export default function MyTile() {
      const {view} = useTile()
      return <p>{view.metadata.size}</p>
      }