Skip to content

Latest commit

 

History

History
18 lines (13 loc) · 1.83 KB

File metadata and controls

18 lines (13 loc) · 1.83 KB

Prop Validation easy #Components

By Lov`u`e @heappynd

Take the Challenge    简体中文

Please validate the type prop of the Button component. it accepts 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>

Back Share your Solutions Check out Solutions