import { Meta, Canvas } from '@storybook/blocks'; import * as HeadlineStories from './Headline.stories.svelte'; # Headline The `Headline` component creates headlines in the legacy Reuters Graphics style, with the text centred on the page. ```svelte ``` ## With bylines and dateline Optionally, you can add authors and a publish time to the headline, which the `Headline` component internally renders with the [Byline](./?path=/docs/components-text-elements-byline--docs) component. > **Note**: Since `Headline` uses `Byline`, you can customise the author page hyperlink and bylines with the `getAuthorPage`, `byline`, `published` and `updated` props. ```svelte { return `mailto:${author.replace(' ', '')}@example.com`; }} /> ``` ## Custom hed and dek Use the `hed` and/or `dek` [snippets](https://svelte.dev/docs/svelte/snippet) to override those elements with custom elements. ```svelte {#snippet hed()}

The secret to “The Nutcracker's” success

{/snippet} {#snippet dek()}

How “The Nutcracker” ballet became anAmerican holday stapleand a financial pillar of ballet companies across the country

{/snippet}
``` ## With crown image To add a crown image, use the `crown` [snippet](https://svelte.dev/docs/svelte/snippet). ```svelte {#snippet crown()} Illustration of Europe {/snippet} ``` ## With crown graphic Add a full graphic or any other component in the crown. ```svelte {#snippet crown()} {/snippet} ```