Migrating from Semantic UI #2692
-
Hi, hoping someone is able to help me I have a codebase with individual semantic modules installed, some code that looks like
What is the fomantic equivalent, tried various ways but Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 12 replies
-
Fomantic does not offer separate component npm packages per module. However, they are still available inside the core fomantic package. So either include semantic.js or components/dropdown.js |
Beta Was this translation helpful? Give feedback.
-
Take this simple boilerplate, which works, and compare to what webpack is doing differently to you. <link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/semantic.min.css">
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/jquery.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/semantic.min.js"></script>
<select class="ui dropdown">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
</select>
<script>
$('.ui.dropdown').dropdown();
</script> |
Beta Was this translation helpful? Give feedback.
Fomantic does not offer separate component npm packages per module. However, they are still available inside the core fomantic package. So either include semantic.js or components/dropdown.js