Sha256: 71beadf0fa15c490d9364dd608ad840c5cce9b45528b5bc60b03388d2947b3fe

Contents?: true

Size: 505 Bytes

Versions: 17

Compression:

Stored size: 505 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')"
  >
    <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

17 entries across 17 versions & 1 rubygems

Version Path
maglevcms-1.4.0 app/frontend/editor/components/kit/rich-text-input/menu-button.vue
maglevcms-1.3.0 app/frontend/editor/components/kit/rich-text-input/menu-button.vue
maglevcms-1.2.2 app/frontend/editor/components/kit/rich-text-input/menu-button.vue
maglevcms-1.2.1 app/frontend/editor/components/kit/rich-text-input/menu-button.vue
maglevcms-1.2.0 app/frontend/editor/components/kit/rich-text-input/menu-button.vue
maglevcms-1.1.7 app/frontend/editor/components/kit/rich-text-input/menu-button.vue
maglevcms-1.1.6 app/frontend/editor/components/kit/rich-text-input/menu-button.vue
maglevcms-1.1.5 app/frontend/editor/components/kit/rich-text-input/menu-button.vue
maglevcms-1.1.4 app/frontend/editor/components/kit/rich-text-input/menu-button.vue
maglevcms-1.1.3 app/frontend/editor/components/kit/rich-text-input/menu-button.vue
maglevcms-1.1.2 app/frontend/editor/components/kit/rich-text-input/menu-button.vue
maglevcms-1.1.1 app/frontend/editor/components/kit/rich-text-input/menu-button.vue
maglevcms-1.1.0 app/frontend/editor/components/kit/rich-text-input/menu-button.vue
maglevcms-1.0.0 app/javascript/editor/components/kit/rich-text-input/menu-button.vue
maglevcms-1.0.0.rc3 app/javascript/editor/components/kit/rich-text-input/menu-button.vue
maglevcms-1.0.0.rc2 app/javascript/editor/components/kit/rich-text-input/menu-button.vue
maglevcms-1.0.0.rc1 app/javascript/editor/components/kit/rich-text-input/menu-button.vue