From 58f0e005b95c450fbfe3d75885a1cc15d8612968 Mon Sep 17 00:00:00 2001 From: Jon McClure Date: Thu, 25 Jul 2024 10:14:32 +0100 Subject: [PATCH] better inline ad docs --- src/components/AdSlot/InlineAd.svelte | 2 +- src/components/AdSlot/stories/docs/inline.md | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/components/AdSlot/InlineAd.svelte b/src/components/AdSlot/InlineAd.svelte index 7feb2ad3..fe294d72 100644 --- a/src/components/AdSlot/InlineAd.svelte +++ b/src/components/AdSlot/InlineAd.svelte @@ -7,7 +7,7 @@ /** Add an ID to target with SCSS. */ export let id: string = ''; - /** Update to add multiple inline ads to a page. */ + /** Number of the inline ad in sequence. Use to add multiple inline ads to a page. */ export let n: 1 | 2 | 3 | '1' | '2' | '3' = 1; /** Add a class to target with SCSS. */ diff --git a/src/components/AdSlot/stories/docs/inline.md b/src/components/AdSlot/stories/docs/inline.md index 15c160a2..abac191c 100644 --- a/src/components/AdSlot/stories/docs/inline.md +++ b/src/components/AdSlot/stories/docs/inline.md @@ -34,10 +34,13 @@ Add programmatic ads inline on your page. {/each} ``` -You may add **up to three** inline ads per page, but must set the `n` prop on multiple ads. +You may add **up to three** inline ads per page, but must set the `n` prop on multiple ads in sequential order, 1 - 3. ```svelte + + + ```