This repository has been archived on 2024-02-08. You can view files and clone it, but cannot push or open issues or pull requests.
2022-11-17 16:20:46 +00:00
|
|
|
<script lang="ts" setup>
|
|
|
|
import {logEvent} from 'histoire/client'
|
|
|
|
import XButton from './button.vue'
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<template>
|
|
|
|
<Story :layout="{ type: 'grid', width: '200px' }">
|
|
|
|
<Variant title="primary">
|
2024-02-07 11:18:19 +00:00
|
|
|
<XButton
|
|
|
|
variant="primary"
|
|
|
|
@click="logEvent('Click', $event)"
|
|
|
|
>
|
2022-11-17 16:20:46 +00:00
|
|
|
Order pizza!
|
|
|
|
</XButton>
|
|
|
|
</Variant>
|
|
|
|
|
|
|
|
<Variant title="secondary">
|
2024-02-07 11:18:19 +00:00
|
|
|
<XButton
|
|
|
|
variant="secondary"
|
|
|
|
@click="logEvent('Click', $event)"
|
|
|
|
>
|
2022-11-17 16:20:46 +00:00
|
|
|
Order spaghetti!
|
|
|
|
</XButton>
|
|
|
|
</Variant>
|
|
|
|
|
|
|
|
<Variant title="tertiary">
|
2024-02-07 11:18:19 +00:00
|
|
|
<XButton
|
|
|
|
variant="tertiary"
|
|
|
|
@click="logEvent('Click', $event)"
|
|
|
|
>
|
2022-11-17 16:20:46 +00:00
|
|
|
Order tortellini!
|
|
|
|
</XButton>
|
|
|
|
</Variant>
|
|
|
|
</Story>
|
|
|
|
</template>
|