<template>
	<view class="ch-nav-btn">
		<uni-icons v-if="props.showIcon || props.icon" :type="props.icon" :size="props.iconSize" :color="props.color"/>
		<slot/>
	</view>
</template>

<script setup name="ChNavBtn">
import { defineProps } from 'vue';

const props = defineProps([
	'icon',
	'iconSize',
	'showIcon',
	'color'
])
</script>

<style lang="scss" scoped>
@import 'ch-nav-btn.scss';
</style>