Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Horizontal collapse support #3202

Open
Velka-DEV opened this issue Jan 29, 2025 · 2 comments
Open

Horizontal collapse support #3202

Velka-DEV opened this issue Jan 29, 2025 · 2 comments
Labels
enhancement New feature or request triage v3 #1289

Comments

@Velka-DEV
Copy link

Description

I believe we should be able to collapse elements from left to right and invert them using the UCollapsible component.

Additional context

No response

@Velka-DEV Velka-DEV added enhancement New feature or request triage v3 #1289 labels Jan 29, 2025
@huongphamx
Copy link

Can you show some examples from other UI lib which support that?

@Velka-DEV
Copy link
Author

Velka-DEV commented Feb 12, 2025

I'm not sure if I know any library that supports that, actually. But, for example, we used the UCollapsible component to make our sidebar toggleable.

<UCollapsible v-else v-model:open="sidebarOpen" :ui="{
    'content' : 'data-[state=open]:animate-[collapsible-right_200ms_ease-out] data-[state=closed]:animate-[collapsible-left_200ms_ease-out] overflow-hidden'
  }">
    <template #content>
      <SidebarContent @toggle-sidebar="sidebarOpen = !sidebarOpen" />
    </template>
</UCollapsible>

How would you achieve this without using UCollapsible?

I think a orientation props would be really easy to implement while having a great value.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request triage v3 #1289
Projects
None yet
Development

No branches or pull requests

2 participants