■ 概要(overview)
コンポーネント名
レベル (Atomic Design)
カテゴリー(category)
■ データ(data)
【props】
id (string) - 要素のID
class (string) - 要素のクラス
style (string | object) - 要素のスタイル
styleReset (boolean) - スタイルリセットフラグ
name (string) - 要素の名前
type (string) - 要素のタイプ('button' | 'reset' | 'submit')
isDisabled(boolean)- 要素の有効化/無効化
【emit】
【computed】
- bindingClass:
props.class, props.styleReset の値に基づいてクラス名を設定 (Sets the class name based on props.class and props.styleReset)
■ 使用例(usecase)
<script setup lang="ts">
import { BasicButton } from 'revuekitz'
import 'revuekitz/dist/style.css'
const testing = () => {
console.log("Hello!");
}
</script>
<template>
<div>
<!-- BasicButtonの使用例 -->
<BasicButton
id="basicButtonId"
class="basic-button-class"
name="basic_button_name"
type="submit"
:style="{ color: 'white', backgroundColor: 'blue' }"
:styleReset="false"
:isDisabled="false"
@click="testing"
>
BasicButton
</BasicButton>
</div>
</template>