chore(Button): use props instead of $props

This commit is contained in:
Benjamin Canac
2024-03-06 16:04:02 +01:00
parent 5449d2aa5f
commit 7d29ff2b7a
3 changed files with 4 additions and 8 deletions

View File

@@ -7,6 +7,8 @@ exports[`Button > renders with block correctly 1`] = `
</button>"
`;
exports[`Button > renders with class correctly 1`] = `"<button type="button" class="inline-flex items-center focus:outline-none focus-visible:outline-0 disabled:cursor-not-allowed disabled:opacity-75 flex-shrink-0 bg-blue-500 hover:bg-blue-700 text-sm gap-x-1.5 p-1 rounded-full font-bold"></button>"`;
exports[`Button > renders with color correctly 1`] = `
"<button type="button" class="rounded-md font-medium inline-flex items-center focus:outline-none focus-visible:outline-0 disabled:cursor-not-allowed disabled:opacity-75 flex-shrink-0 bg-red-500 hover:bg-red-700 px-2.5 py-1.5 text-sm gap-x-1.5">
<!--v-if--><span class="">Button</span>
@@ -121,10 +123,3 @@ exports[`Button > renders with truncate correctly 1`] = `
<!--v-if-->
</button>"
`;
exports[`Button > renders with variant correctly 1`] = `
"<button type="button" class="rounded-md font-medium inline-flex items-center focus:outline-none focus-visible:outline-0 disabled:cursor-not-allowed disabled:opacity-75 flex-shrink-0 bg-blue-500 hover:bg-blue-700 px-2.5 py-1.5 text-sm gap-x-1.5">
<!--v-if--><span class="">Button</span>
<!--v-if-->
</button>"
`;