EastsideCo / polaris-vue

Allows you to use Shopify Polaris components in Vue 2.
https://www.npmjs.com/package/@eastsideco/polaris-vue
113 stars 27 forks source link

<polaris-tabs>? #20

Open ideacco opened 4 years ago

ideacco commented 4 years ago

I saw that the sample code in the section of the document is blank. I want to know how I should use it. Any help? Thank you

Kyon147 commented 4 years ago

The only prop this has is "value" you can do something like this:

         <polaris-tabs
            :value="['one', 'two', 'three']"
         >
           <div slot="one">Something in one</div>
            <div slot="two">Something in two</div>
            <div slot="three">Something in three</div>
        </polaris-tabs>