ListButton は リスト Vue コンポーネント の中で使用することを意図しています。
以下のコンポーネントが含まれています。
ListButton
名前 | 型 | デフォルト | 説明 |
---|---|---|---|
colors | オブジェクト | Tailwind CSS カラークラスを含むオブジェクト | |
colors.activeBgIos | 文字列 | 'active:bg-primary active:bg-opacity-15' | |
colors.activeBgMaterial | 文字列 | '' | |
colors.textIos | 文字列 | 'text-primary' | |
colors.textMaterial | 文字列 | 'text-md-light-primary dark:text-md-dark-primary' | |
colors.touchRipple | 文字列 | 'touch-ripple-primary' | |
component | 文字列 | 'li' | コンポーネントのHTML要素 |
href | 文字列 | ボタンのリンク `href` 属性 | |
linkComponent | 文字列 | 'a' | ボタンのHTML要素 |
linkProps | 任意 | リンク/ボタンに渡す追加のプロパティ(属性)を含むオブジェクト | |
target | 文字列 | ボタンのリンク `target` 属性 | |
touchRipple | ブール値 | true | マテリアルテーマでタッチリップル効果を有効にします。 |
type | 文字列 | 未定義 | ボタンの `type` 属性(`linkComponent: 'button'` で `<button>` としてレンダリングする場合) |
value | 任意 | ボタンの `type` 属性(`linkComponent: 'button'` で `<button>` としてレンダリングする場合) |
<template><k-page><k-navbar title="List Button" /><k-list><k-list-button>Button 1</k-list-button><k-list-button>Button 2</k-list-button><k-list-button>Button 3</k-list-button></k-list><k-list inset><k-list-button>Button 1</k-list-button><k-list-button>Button 2</k-list-button><k-list-button>Button 3</k-list-button></k-list><k-list inset><k-list-button class="k-color-brand-red"> Red Button </k-list-button></k-list></k-page></template><script>import {kPage,kNavbar,kNavbarBackLink,kList,kListButton,} from 'konsta/vue';export default {components: {kPage,kNavbar,kNavbarBackLink,kList,kListButton,},};</script>