Tile

Tiles are repeatable or embeddable information blocks.

<script>
    import {Button, Tile, Icon, Container} from 'svelte-spectre'
</script>

<Container>
    <Tile>
        <div slot="icon">
            <Icon icon="emoji" size="2x" color="primary" />
        </div>
        <div slot="title">The Avengers</div>
        <div slot="subtitle">Earth's Mightiest Heroes joined forces to take on threats that were too big for any one hero to tackle...</div>
        <div slot="action">
            <Button variant="primary">Join</Button>
        </div>
    </Tile>
</Container>
The Avengers
Earth's Mightiest Heroes joined forces to take on threats that were too big for any one hero to tackle...
© 2022 — 2023 BASF SE

API Tile

centered: Boolean
set component in center
true | false
<slot name="icon">: HTMLelement | SvelteComponent
image or icon in tile
HTMLelement | SvelteComponent
<slot name="title">: HTMLelement | SvelteComponent
title text in tile
HTMLelement | SvelteComponent
<slot name="subtitle">: HTMLelement | SvelteComponent
subtitle text in tile
HTMLelement | SvelteComponent
<slot name="action">: HTMLelement | SvelteComponent
action component in tile
HTMLelement | SvelteComponent