Semaine de lancement50 % sur un an d’AuteurVoir les offres
EspacesPasser à Pro
Tous les composants

Popover Gratuit

Grows out of the button you pressed, from the point it hangs from. Click outside or press Escape.

Click outside or press Escape to close.

Caractère
Joueur
Inscrivez-vous gratuitement pour télécharger

À utiliser pour

  • A few options tied to one button.

Pas pour

  • Anything long. Use a sheet.

Props

Lues dans le TypeScript du composant lui-même, donc toujours à jour.

PropTypePar défaut
triggerObligatoireReactNode
childrenObligatoireReactNode
labelObligatoirestring
side'bottom' | 'top''bottom'

Améliorez-le avec une skill

Ajoutez-en une à votre agent et il utilisera Popover comme prévu.

Page structureGratuit

Decides where it goes on the page and what sits around it.

$npx velvo skill page-structure
Lire la skill
Less is moreGratuit

One of these per screen is plenty. This skill keeps it that way.

$npx velvo skill less-is-more
Lire la skill

Specs

Category
Surfaces
Tier
Free
Built with
React and TypeScript
Files
16
Size
305 KB
Needs
framer-motion
Install
npx velvo add popover
Works with
Next.js, Vite, Remix, Expo web

Licence

Velvo free licence
  • Personal and commercial use
  • Change it however you like
  • No credit needed

Not for resale as a component or a UI kit.

Tags

surfacesfreereact
SuivantMarquee