Get started with primevue CDN
MIT licensed
PrimeVue is a popular open-source UI component library for Vue.js applications.
Tags:- primevue
- vue
- ui framework
- component framework
- ui library
- component library
- material
- bootstrap
Stable version
Copied!
How to start using primevue CDN
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="https://unpkg.com/primevue@2.2.13/dist/themes/saga-blue/theme.css">
<link rel="stylesheet" href="https://unpkg.com/primevue@2.2.13/dist/primevue.min.css">
<script src="https://unpkg.com/primevue@2.2.13/dist/primevue.min.js"></script>
<title>Get started with primevue CDN - cdnhub.io</title>
</head>
<body>
<div id="app">
<p>Enter a number:</p>
<input type="number" pInputText v-model="number" />
<p>Is Prime: {{ isPrime }}</p>
</div>
<script src="https://unpkg.com/vue@2.6.11/dist/vue.min.js"></script>
<script>
new Vue({
el: '#app',
data: {
number: 0,
isPrime: false
},
methods: {
isPrimeNumber: function() {
this.isPrime = Number.isInteger(Math.sqrt(this.number)) ? false : this.number > 1;
}
},
mounted() {
this.isPrimeNumber();
}
});
</script>
</body>
</html>
Copied!
All versions
2.10.2
2.10.3
2.10.4
3.22.1
3.22.2
3.22.3
3.22.4
3.23.0
3.24.0
3.25.0
3.26.0
3.26.1
3.27.0
3.28.0
3.29.0
3.29.1
3.29.2
3.30.0
3.30.1
3.30.2
3.31.0
3.32.0
3.32.1
3.32.2
3.33.0
3.34.0
3.34.1
3.35.0
3.36.0
3.37.0
3.38.0
3.38.1
3.39.0
3.40.0
3.40.1
3.41.0
3.41.1
3.42.0
3.43.0
3.44.0
3.45.0
3.46.0
3.47.0
3.47.1
3.47.2
3.48.0
3.48.1
3.49.0
3.49.1
3.50.0
3.51.0
3.52.0
3.53.0
4.0.0
4.0.0-beta.1
4.0.0-beta.2
4.0.0-beta.3
4.0.0-beta.4
4.0.0-beta.5
4.0.0-rc.1
4.0.0-rc.2
4.0.0-rc.3
4.0.1
4.0.2
4.0.3
4.0.4
*** 4.0.5