Skip to content

Prop Validation easy #Components

By Lov`u`e @heappynd

Take the Challenge    简体中文

Please validate the type prop of the Button component. it's accept the following strings primary | ghost | dashed | link | text | default only and the default value is default.

<script setup>
defineProps({
  type: {},
})
</script>

<template>
  <button>Button</button>
</template>

Share your Solutions Check out Solutions