first commit
This commit is contained in:
+21
@@ -0,0 +1,21 @@
|
||||
import { computed, defineComponent, h } from 'vue'
|
||||
import { config } from '@fortawesome/fontawesome-svg-core'
|
||||
|
||||
export default defineComponent({
|
||||
name: 'FontAwesomeLayers',
|
||||
|
||||
props: {
|
||||
fixedWidth: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
}
|
||||
},
|
||||
|
||||
setup(props, { slots }) {
|
||||
const { familyPrefix } = config
|
||||
|
||||
const className = computed(() => [`${familyPrefix}-layers`, ...(props.fixedWidth ? [`${familyPrefix}-fw`] : [])])
|
||||
|
||||
return () => h('div', { class: className.value }, slots.default ? slots.default() : [])
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user