Skip to content
This repository has been archived by the owner on Oct 24, 2018. It is now read-only.

Tabs have no CSS #58

Closed
pzjzeason opened this issue Apr 26, 2018 · 2 comments
Closed

Tabs have no CSS #58

pzjzeason opened this issue Apr 26, 2018 · 2 comments

Comments

@pzjzeason
Copy link

pzjzeason commented Apr 26, 2018

I'm new with Vue and Vue cli. I'd like to try out this tabs-component, and my code in App.vue is as follows:

<template>
  <div>
    <tabs>
        <tab name="First tab">
            First tab content
        </tab>
        <tab name="Second tab">
            Second tab content
        </tab>
        <tab name="Third tab">
            Third tab content
        </tab>
    </tabs>
  </div>
</template>

<script>
import Vue from 'vue';
import {Tabs, Tab} from 'vue-tabs-component';
Vue.component('tabs', Tabs);
Vue.component('tab', Tab);
export default {
  name: 'App'
}
</script>

In browser:
image

What can I do to fix it, please show me the way!

@karam94
Copy link

karam94 commented May 2, 2018

You have to manually put the CSS in yourself.

https://github.com/spatie/vue-tabs-component/blob/master/docs/resources/tabs-component.css

Good luck!

@mkosir
Copy link

mkosir commented Aug 2, 2018

pzjzeason, add a following line into your component script:
import 'vue-tabs-component/docs/resources/tabs-component.css';
This will addd default styling to the component.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants