Skip to content

Better template documentation #74

Description

@mrleblanc101

Hi,

First, I thought this was optional (if you don't use swipe or progress) so I didn't put it but my Toast wouldn't render !

It's not clearly explained why and where I should add the template.
At first, I thought I needed to add this in every components that I call push.

Then, I thought it was used as the container where the individual Toast would be rendered, but there is the teleportTo option that defaults to body, so they are not rended where we place this templace.

<Notivue v-slot="item">
    <NotivueSwipe :item="item">
        <Notification :item="item">
            <NotificationProgress />
        </Notification>
    </NotivueSwipe>
</Notivue>

So, this leaves me wondering, couldn't this be configuration instead of components ?

const notivue = createNotivue({
    // more options
    swipe: true,
    progress: true,
    // more options
});

Metadata

Metadata

Assignees

Labels

docsClarifications on documentation

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions