Skip to content

Instantly share code, notes, and snippets.

@jigarzon
Created September 12, 2019 15:57
Show Gist options
  • Save jigarzon/87eb81696517a5167907e24b4aaed5ec to your computer and use it in GitHub Desktop.
Save jigarzon/87eb81696517a5167907e24b4aaed5ec to your computer and use it in GitHub Desktop.
<template>
<q-card>
<q-card-section class="bg-primary text-white">
<span class="text-h6">My Quasar component</span>
</q-card-section>
<q-card-section>
<q-form>
<q-input label="Hello" />
<q-input label="Goodbye" />
</q-form>
</q-card-section>
</q-card>
</template>
<script>
import { QCard, QCardSection, QForm, QInput, colors } from 'quasar'
export default {
components: {
QCard,
QCardSection,
QForm,
QInput
},
created() {
colors.setBrand('primary', '#33F')
colors.setBrand('secondary', '#4f4')
}
}
</script>
<style lang="stylus">
@import '../styles/quasar.styl';
</style>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment