Skip to content
This repository has been archived by the owner on Sep 27, 2023. It is now read-only.

Should I not just use the semantic-UI directly? #12

Closed
soichih opened this issue Mar 1, 2017 · 5 comments
Closed

Should I not just use the semantic-UI directly? #12

soichih opened this issue Mar 1, 2017 · 5 comments

Comments

@soichih
Copy link

soichih commented Mar 1, 2017

Thanks for this repo. I am very new to vue, and I don't quite understand the benefit of using this library, rather than using semantic-ui element directly. Can you explain what this does? Sorry if this is a stupid question.

@green-coder
Copy link

green-coder commented Mar 16, 2017

IMHO, this is not a stupid question, it is quite pertinent and is hopefully opening a useful discussion amongst the regular and potential users.

IMHO, some Semantic-UI elements could clearly be used directly (e.g. the icons and buttons). And some others (e.g. dropdowns, modals) could benefit from being used via this library, provided that the design of its Vue components fits the user's needs.

IMHO, this library is the most useful as a starting point to help Vue users figure out how to integrate the Semantic-UI's behaviors in their own Vue components.

@soichih
Copy link
Author

soichih commented Mar 17, 2017

@green-coder Thanks for the comment. So far 90% of semantic-ui components are CSS only and I can just use it inside the template. For dropdown, popup, that needs initialization, all I have to do is

  mounted: function() {
    $(this.$el).find('.ui.dropdown').dropdown();
  },

I am not sure if there is a better way?

I've had a bit of issue with more complex elements like modal, but I believe it's just a matter of finding a right pattern that should be documented by semantic-ui. In general, I agree with your opinion that Vue can directly use semantic-ui for the most part.

@annyHu
Copy link

annyHu commented Sep 6, 2017

I install in vue,but i can't run it ,it's error ,say couldn't find preset 'es2015' , why???

@BrockReece
Copy link
Contributor

BrockReece commented Sep 6, 2017

Hi @soichih and @green-coder

Thanks for your question, I agree that most of the semantic-ui library can just be implemented with css inline, but I built a set of reusable components that help out with bootstrapping more complex parts of the library. I moved these components into a plugin as I was using it in multiple projects and I open sourced it just incase anyone found the components useful.

I hope that helps?

@UareSb are you happy to open a new issue with that comment to keep things tidy?

@soichih
Copy link
Author

soichih commented Sep 7, 2017

@BrockReece That makes sense. Thanks!

@soichih soichih closed this as completed Sep 7, 2017
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