hypnagaga/src/components/GraphicBlock/stories/docs/customText.md
2023-07-20 18:15:05 +01:00

464 B

You can override the markup used to generate the chart text elements by using the title and/or notes named slots like this:

<GraphicBlock
  width="normal"
  notes="{'Note: Data current as of Aug. 2, 2022.\n\nSource: [Google research](https://google.com)'}"
>
  <h5 slot="title">My smaller title</h5>
  <div id="my-chart"></div>
  <aside slot="notes">
    <p><strong>Note:</strong> Data current as of Aug. 2, 2022.</p>
  </aside>
</GraphicBlock>