@forlagshuset/v-tabs

0.2.27 • Public • Published

FH Tabs component

ARIA implementation as in https://www.w3.org/TR/wai-aria-practices/examples/tabs/tabs-1/tabs.html

FHTabs props

  props: {
    ariaLabel: {
      type: String
    }
  }```

FHTab props:

  props: {
    id: {
      type: String,
      default: null
    },
    name: {
      type: String,
      required: true
    },
    prefix: {
      type: String,
      default: ''
    },
    suffix: {
      type: String,
      default: ''
    },
    isDisabled: {
      type: Boolean,
      default: false
    },
  },

Basic example

<FHTabs>
  <FHTab name="tab button name">
    // Use other components or HTML here!
  <FHTab>
</FHTabs>

Tabs with before/after templates

Using VueJS slots 😍

<FHTabs>
  <template #before-tablist>Before Tablist</template>
  <template #after-tablist>After Tablist</template>
  <template #before-panels>Before Panels</template>
  <template #after-panels>After Panels</template>
  <FHTab name="tab button name">
    // Use other components or HTML here!
  <FHTab>
</FHTabs>

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.2.272latest

Version History

VersionDownloads (Last 7 Days)Published
0.2.272
0.2.262
0.2.252
0.2.242
0.2.232
0.2.222
0.2.212
0.2.202
0.2.191
0.2.181
0.2.171
0.2.162
0.2.151
0.2.141
0.2.132
0.2.121
0.2.112
0.2.102
0.2.92
0.2.81
0.2.71
0.2.62
0.2.52
0.2.42
0.2.32
0.2.22
0.1.142
0.2.11
0.2.01
0.1.111
0.1.102
0.1.91
0.1.82
0.1.72
0.1.62
0.1.52
0.1.42
0.1.32
0.1.22
0.1.12

Package Sidebar

Install

npm i @forlagshuset/v-tabs

Weekly Downloads

68

Version

0.2.27

License

MIT

Unpacked Size

171 kB

Total Files

19

Last publish

Collaborators

  • kemorian
  • warszk
  • iapain
  • lukaszsiromski
  • daniel.wiadro
  • shardiwal