This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="box drink"> | |
<svg width="303px" height="280px" viewBox="-3 -1 303 280" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> | |
<!-- Generator: Sketch 41.2 (35397) - http://www.bohemiancoding.com/sketch --> | |
<desc>Created with Sketch.</desc> | |
<defs> | |
<polygon id="path-1" points="0 0 30.17 269.38 94.99 269.38 125.27 90"></polygon> | |
</defs> | |
<g id="rebus" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"> | |
<g id="Group"> | |
<g id="rebus"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<cv-button @click="onClick">Hello @carbon/vue</cv-button> | |
</template> | |
<script> | |
export default { | |
name: 'HelloWorld', | |
methods: { | |
onClick() { | |
alert('Hello @carbon/vue'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Vue from "vue"; | |
import App from "./App.vue"; | |
// add an import for @carbon/vue | |
import CarbonComponentsVue from "@carbon/vue/src/index"; | |
Vue.use(CarbonComponentsVue); | |
new Vue({ | |
render: h => h(App) | |
}).$mount("#app"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ... Add carbon styles | |
<style lang="scss"> | |
@import "~carbon-components/scss/globals/scss/styles.scss"; | |
// ... | |
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<div id="app"> | |
<div class="hero"> | |
<img class="logo" alt="Vue logo" src="./assets/logo.png"> | |
<p>meet</p> | |
<img class="logo logo--nudge" alt="@Carbon/vue logo" src="./assets/AtCarbonVue.png"> | |
</div> | |
<hello-world/> | |
</div> | |
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<div class="hello"> | |
<cv-text-input | |
:label="label" | |
placeholder="What is yrou name?" | |
v-model="yourName" | |
></cv-text-input> | |
<cv-link | |
href="https://github.com/carbon-design-system/carbon-components-vue" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// inserts an element directly in place with no wrapper element | |
import Vue from 'vue'; | |
export default { | |
name: 'CvuInsertElement', | |
functional: true, | |
props: ['html'], | |
render(h, ctx) { | |
const node = new Vue({ | |
template: `${ctx.props.html}` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Block class BEM": { | |
"prefix": "block-class", | |
"body": [ | |
"$$block-class: \"${TM_FILENAME_BASE}\";", | |
"", | |
".#{$$block-class} {", | |
" // styles for $$block-class", | |
" $1", | |
"}", |