mirror of
https://github.com/iconify/iconify.git
synced 2024-12-22 09:48:54 +00:00
Add attributes to vue demo
This commit is contained in:
parent
ce135b6cf5
commit
ffe8ebacc0
@ -23,6 +23,7 @@
|
||||
|
||||
<StyleTest />
|
||||
<InlineTest />
|
||||
<VueAttributesTest />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@ -37,6 +38,7 @@ import UsageDemo from './demo-components/Usage.vue';
|
||||
|
||||
import StyleTest from './test-components/Style.vue';
|
||||
import InlineTest from './test-components/Inline.vue';
|
||||
import VueAttributesTest from './test-components/VueAttributes.vue';
|
||||
|
||||
// Disable cache
|
||||
disableCache('all');
|
||||
@ -73,6 +75,7 @@ export default {
|
||||
UsageDemo,
|
||||
StyleTest,
|
||||
InlineTest,
|
||||
VueAttributesTest,
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
@ -2,12 +2,16 @@
|
||||
<section>
|
||||
<h1>Vue attributes (components/VueAttributes.vue)</h1>
|
||||
<div>
|
||||
Icon size (2em):
|
||||
<iconify-icon icon="admin-users" height="2em" />
|
||||
Icon size (2em) with title:
|
||||
<iconify-icon icon="admin-users" height="2em" title="Big icon" />
|
||||
</div>
|
||||
<div>
|
||||
Icon style as string (red):
|
||||
<iconify-icon icon="admin-users" style="color: red" />
|
||||
<iconify-icon
|
||||
icon="admin-users"
|
||||
style="color: red"
|
||||
title="Red icon"
|
||||
/>
|
||||
</div>
|
||||
<div>
|
||||
Inline icon with vertical-align style as string (aligned to top):
|
||||
|
Loading…
Reference in New Issue
Block a user