Skip to content

Commit

Permalink
feat(toggle-button): sync with Figma
Browse files Browse the repository at this point in the history
  • Loading branch information
devCrossNet committed Jun 7, 2024
1 parent 89da877 commit 33e0673
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<div :class="[$style.vueToggleButton, $style[size]]">
<vue-inline space="0" :class="[$style.vueToggleButton, $style[size]]">
<vue-button
v-for="(item, idx) in items"
:key="`${item.value}-${idx}`"
Expand All @@ -13,14 +13,15 @@
>
<component :is="`vue-icon-${item.leadingIcon}`" />
</vue-button>
</div>
</vue-inline>
</template>

<script setup lang="ts">
import { useCssModule } from 'vue';
import type { IItem } from '~/interfaces/IItem';
import VueButton from '~/components/input-and-actions/VueButton/VueButton.vue';
import type { ShirtSize } from '~/components/prop-types';
import VueInline from '~/components/layout/VueInline/VueInline.vue';
// Interface
interface ToggleButtonProps {
Expand Down Expand Up @@ -56,8 +57,6 @@ const isChecked = (item: IItem) => {
@import 'assets/_design-system.scss';
.vueToggleButton {
display: inline-flex;
.button {
aspect-ratio: 1 / 1;
border-radius: 0;
Expand Down

0 comments on commit 33e0673

Please sign in to comment.