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

[Hover Card]feat: 2/3 #137

Closed
24 of 28 tasks
k11q opened this issue Jul 7, 2023 · 0 comments · Fixed by #187
Closed
24 of 28 tasks

[Hover Card]feat: 2/3 #137

k11q opened this issue Jul 7, 2023 · 0 comments · Fixed by #187

Comments

@k11q
Copy link
Member

k11q commented Jul 7, 2023

Phase 2 of this project development is about making all API such as props, emits and data-attributes, work as expected. Below is the list of API needed to be completely working to get through the phase 2 of development.

The list is structured as below:
Prop/emit/data-attributes | Type | Default

Root

Props

  • defaultOpen boolean -
  • open boolean -
  • onOpenChange function -
  • v-model:open boolean -
  • openDelay number 700
  • closeDelay number 300

Trigger

Props

  • asChild boolean false

Data Attributes

  • [data-state] "open"|"closed"

Portal

Props

  • forceMount boolean -
  • container HTMLElement document.body

Content

Props

  • asChild boolean false
  • forceMount boolean -
  • side "top" | "right" | "bottom" | "left" "bottom"
  • sideOffset number 0
  • align "start" | "center" | "end" "center"
  • alignOffset number 0
  • avoidCollisions boolean true
  • collisionBoundary Element | null | Array<Element | null> []
  • collisionPadding number|Padding 0
  • arrowPadding number 0
  • sticky "partial"|"always" "partial"
  • hideWhenDetached boolean false

Data Attributes

  • [data-state] "open"|"closed"
  • [data-side] "left"|"right"|"bottom"|"top"
  • [data-align] "start"|"end"|"center"

Arrow

Props

  • asChild boolean false
  • width number 10
  • height number 5
@k11q k11q linked a pull request Jul 14, 2023 that will close this issue
@k11q k11q closed this as completed in #187 Jul 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant