Skip to content
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion docs/components/card/examples/FwbCardExample.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
<template>
<div class="vp-raw inline-flex flex-wrap gap-2">
<fwb-card href="#" class="w-sm">
<fwb-card
href="#"
class="w-sm"
>
<div class="p-5">
<h5 class="mb-2 text-2xl font-bold tracking-tight text-gray-900 dark:text-white">
Noteworthy technology acquisitions 2021
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<form
class="vp-raw"
class="gap-2 grid vp-raw"
@submit.prevent
>
<fwb-textarea
Expand All @@ -22,7 +22,10 @@
placeholder="Cannot be edited"
readonly
/>
<fwb-button type="submit">
<fwb-button
class="justify-self-start"
type="submit"
>
Validate
</fwb-button>
</form>
Expand Down
76 changes: 39 additions & 37 deletions docs/components/toastProvider/examples/UpdateToast.vue
Original file line number Diff line number Diff line change
@@ -1,41 +1,43 @@
<template>
<flowbite-themable theme="blue">
<fwb-toast
v-bind="$attrs"
@close="$emit('close')"
>
<template #icon>
<svg
aria-hidden="true"
class="size-5"
fill="#ffff"
viewBox="0 0 20 20"
xmlns="http://www.w3.org/2000/svg"
>
<path
fill-rule="evenodd"
d="M4 2a1 1 0 011 1v2.101a7.002 7.002 0 0111.601 2.566 1 1 0 11-1.885.666A5.002 5.002 0 005.999 7H9a1 1 0 010 2H4a1 1 0 01-1-1V3a1 1 0 011-1zm.008 9.057a1 1 0 011.276.61A5.002 5.002 0 0014.001 13H11a1 1 0 110-2h5a1 1 0 011 1v5a1 1 0 11-2 0v-2.101a7.002 7.002 0 01-11.601-2.566 1 1 0 01.61-1.276z"
clip-rule="evenodd"
/>
</svg>
</template>
<span class="mb-1 text-sm font-semibold text-gray-900 dark:text-white">Update available</span>
<div class="mb-2 text-sm font-normal">
<slot />
</div>
<div class="grid grid-cols-2 gap-2">
<fwb-button size="xs">
Update
</fwb-button>
<fwb-button
size="xs"
:color="'alternative'"
>
Not now
</fwb-button>
</div>
</fwb-toast>
</flowbite-themable>
<div>
<flowbite-themable theme="blue">
<fwb-toast
v-bind="$attrs"
@close="$emit('close')"
>
<template #icon>
<svg
aria-hidden="true"
class="size-5"
fill="#ffff"
viewBox="0 0 20 20"
xmlns="http://www.w3.org/2000/svg"
>
<path
fill-rule="evenodd"
d="M4 2a1 1 0 011 1v2.101a7.002 7.002 0 0111.601 2.566 1 1 0 11-1.885.666A5.002 5.002 0 005.999 7H9a1 1 0 010 2H4a1 1 0 01-1-1V3a1 1 0 011-1zm.008 9.057a1 1 0 011.276.61A5.002 5.002 0 0014.001 13H11a1 1 0 110-2h5a1 1 0 011 1v5a1 1 0 11-2 0v-2.101a7.002 7.002 0 01-11.601-2.566 1 1 0 01.61-1.276z"
clip-rule="evenodd"
/>
</svg>
</template>
<span class="mb-1 font-semibold text-gray-900 dark:text-white text-sm">Update available</span>
<div class="mb-2 font-normal text-sm">
<slot />
</div>
<div class="gap-2 grid grid-cols-2">
<fwb-button size="xs">
Update
</fwb-button>
<fwb-button
size="xs"
:color="'alternative'"
>
Not now
</fwb-button>
</div>
</fwb-toast>
</flowbite-themable>
</div>
</template>

<script lang="ts" setup>
Expand Down
Loading
Loading