mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-29 03:10:42 +01:00
playground(collapsible): handle trailingIcon differently
This commit is contained in:
@@ -1,10 +1,13 @@
|
|||||||
<template>
|
<template>
|
||||||
<UCollapsible class="space-y-2 w-48">
|
<UCollapsible class="space-y-2 w-48">
|
||||||
<UButton class="group" color="gray" label="Open" block>
|
<UButton
|
||||||
<template #trailing="trailingProps">
|
class="group"
|
||||||
<UIcon name="i-heroicons-chevron-right-20-solid" :class="trailingProps.class" class="group-data-[state=open]:rotate-90 transition-transform duration-200" />
|
trailing-icon="i-heroicons-chevron-right-20-solid"
|
||||||
</template>
|
color="gray"
|
||||||
</UButton>
|
label="Open"
|
||||||
|
block
|
||||||
|
:ui="{ trailingIcon: 'group-data-[state=open]:rotate-90 transition-transform duration-200' }"
|
||||||
|
/>
|
||||||
|
|
||||||
<template #content>
|
<template #content>
|
||||||
<Placeholder class="h-24 w-full" />
|
<Placeholder class="h-24 w-full" />
|
||||||
|
|||||||
Reference in New Issue
Block a user