Sha256: 4a6a1bb151c5724237017a94e47710bcd8ef9d6c6e8423426c6af6a32b82228a

Contents?: true

Size: 511 Bytes

Versions: 8

Compression:

Stored size: 511 Bytes

Contents

<template>
  <button
    class="px-2 py-2 bg-gray-100 hover:bg-gray-200 focus:outline-none focus:ring"
    :class="{
      'bg-gray-400 hover:bg-gray-400': isActive,
      'bg-gray-100': !isActive,
    }"
    @click="$emit('click')"
  >
    <uikit-icon :name="iconName" class="w-4 h-4 text-dark" />
  </button>
</template>

<script>
export default {
  name: 'EditorMenuButton',
  props: {
    isActive: { type: Boolean, default: false },
    iconName: { type: String, default: 'format-bold' },
  },
}
</script>

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
maglevcms-1.8.0 app/frontend/editor/components/kit/rich-text-input/menu-button.vue
maglevcms-1.7.3 app/frontend/editor/components/kit/rich-text-input/menu-button.vue
maglevcms-1.7.2 app/frontend/editor/components/kit/rich-text-input/menu-button.vue
maglevcms-1.7.1 app/frontend/editor/components/kit/rich-text-input/menu-button.vue
maglevcms-1.7.0 app/frontend/editor/components/kit/rich-text-input/menu-button.vue
maglevcms-1.6.1 app/frontend/editor/components/kit/rich-text-input/menu-button.vue
maglevcms-1.6.0 app/frontend/editor/components/kit/rich-text-input/menu-button.vue
maglevcms-1.5.1 app/frontend/editor/components/kit/rich-text-input/menu-button.vue