---
title: "portfolio-weights"
description: "A portfolio's holdings by weight. On a portfolio's page only."
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.sherpo.io/llms.txt
> Use this file to discover all available pages before exploring further.

# portfolio-weights

## Where it sits

| Body | In the body | Inside its texts |
| --- | --- | --- |
| The store's home | No | No |
| A custom page | No | No |
| A product's page | No | No |
| An event's page | No | No |
| A portfolio's page | Yes | Yes |
| A lesson | No | No |
| An article | No | No |

A text holds it as a `<block type="portfolio-weights" props="…"></block>` element: its props are those below but `type`, which the element's own `type` names.

See [Bodies](/overview/blocks#bodies) for how a body holds its blocks.

## Props

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | `string` | Yes | The block's id, unique within its body. |
| `type` | `"portfolio-weights"` | Yes | The block's type. |
| `hidden` | `boolean` | No | Whether the block is hidden: it, and every block it holds, doesn't show. |

## JSON Schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "The block's id, unique within its body."
    },
    "type": {
      "type": "string",
      "const": "portfolio-weights",
      "description": "The block's type."
    },
    "hidden": {
      "type": "boolean",
      "description": "Whether the block is hidden: it, and every block it holds, doesn't show."
    }
  },
  "required": [
    "id",
    "type"
  ],
  "description": "A portfolio's holdings by weight. On a portfolio's page only.",
  "additionalProperties": false
}
```

Source: https://docs.sherpo.io/overview/blocks/portfolio-weights/index.mdx
