web/SectionHeading: added a new prop to disable the link
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
export let title: string;
|
||||
export let sectionId: string;
|
||||
export let beta = false;
|
||||
export let nolink = false;
|
||||
export let copyData = "";
|
||||
|
||||
const sectionURL = `${$page.url.origin}${$page.url.pathname}#${sectionId}`;
|
||||
@@ -32,6 +33,7 @@
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{#if !nolink}
|
||||
<button
|
||||
class="link-copy"
|
||||
aria-label={copied
|
||||
@@ -44,6 +46,7 @@
|
||||
>
|
||||
<CopyIcon check={copied} regularIcon={!!copyData} />
|
||||
</button>
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
<style>
|
||||
|
||||
Reference in New Issue
Block a user