primevue-mirror/apps/showcase/components/layout/designer/primitive/DesignBorderRadius.vue

31 lines
1.2 KiB
Vue
Raw Normal View History

2024-11-10 19:16:58 +00:00
<template>
<Fieldset legend="Rounded" :toggleable="true">
2024-11-13 11:35:07 +00:00
<section class="grid grid-cols-4 gap-2">
2024-11-10 19:16:58 +00:00
<div class="flex flex-col gap-1">
2024-11-12 13:44:52 +00:00
<DesignTokenField v-model="$preset.primitive.borderRadius.none" label="None" />
2024-11-10 19:16:58 +00:00
</div>
<div class="flex flex-col gap-1">
2024-11-12 13:44:52 +00:00
<DesignTokenField v-model="$preset.primitive.borderRadius.xs" label="Extra Small" />
2024-11-10 19:16:58 +00:00
</div>
<div class="flex flex-col gap-1">
2024-11-12 13:44:52 +00:00
<DesignTokenField v-model="$preset.primitive.borderRadius.sm" label="Small" />
2024-11-10 19:16:58 +00:00
</div>
<div class="flex flex-col gap-1">
2024-11-12 13:44:52 +00:00
<DesignTokenField v-model="$preset.primitive.borderRadius.md" label="Medium" />
2024-11-10 19:16:58 +00:00
</div>
<div class="flex flex-col gap-1">
2024-11-12 13:44:52 +00:00
<DesignTokenField v-model="$preset.primitive.borderRadius.lg" label="Large" />
2024-11-10 19:16:58 +00:00
</div>
<div class="flex flex-col gap-1">
2024-11-12 13:44:52 +00:00
<DesignTokenField v-model="$preset.primitive.borderRadius.xl" label="Extra Large" />
2024-11-10 19:16:58 +00:00
</div>
</section>
</Fieldset>
</template>
<script>
export default {
inject: ['$preset']
};
</script>