mathcovax / mon-enorme-tronc

1 stars 1 forks source link

feat(55): add ThePopup #61

Closed Maubry94 closed 5 months ago

Maubry94 commented 5 months ago

close #55 How to use:

<ThePopup>
    <template #trigger="{ open }">
        <SecondaryButton
            @click="open"
            class="w-full"
        >
            Open popup
        </SecondaryButton>
    </template>

    <template #popupContent="{ close }">
        <div class=" w-96 grid gap-4">
            <div class="grid gap-2 text-center">
                <h1 class="text-3xl font-bold">
                    Popup content
                </h1>

                <p class="text-balance text-muted-foreground">
                    You can put any content here
                </p>
            </div>

            <SecondaryButton
                @click="close"
                class="w-full"
            >
                Close popup
            </SecondaryButton>
        </div>
    </template>
</ThePopup>
github-actions[bot] commented 5 months ago

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 100% 148 / 148
🔵 Statements 100% 159 / 159
🔵 Functions 100% 65 / 65
🔵 Branches 85% 34 / 40
File CoverageNo changed files found.
Generated in workflow #51
Maubry94 commented 5 months ago

Merde mon commit est pas parti ! J'annule du coup.