Неделя запускаСкидка 50% на год AuteurТарифы
Все компоненты

Momentum sheet Бесплатно

A bottom sheet that carries your flick and settles where you were heading.

Открыть в редакторе
Показано в
Характер
Игривый
Зарегистрируйтесь бесплатно, чтобы скачать

Подходит для

  • Something that belongs on top of the screen without replacing it: a map’s results, a bag, filters.
  • Content people move between a glance and a full read.

Не подходит для

  • A decision people must make before going on. Use a dialog.
  • Long forms. A full screen gives the keyboard room.

Пропсы

Прочитаны прямо из TypeScript компонента, поэтому всегда актуальны.

ПропсТипПо умолчанию
openОбязательныйboolean
onCloseОбязательный() => void
detentsnumber[]Heights it rests at, as a share of the space it's in, lowest first.[0.42, 0.9]
initialnumberWhich height it opens at.0
dismissiblebooleanWhether a flick down can close it.true
labelОбязательныйstring
childrenОбязательныйReactNode

Лучше с навыком

Добавьте навык агенту, и он будет использовать Momentum sheet так, как задумано.

Page structureБесплатно

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

$npx velvo skill page-structure
Открыть навык
Less is moreБесплатно

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

$npx velvo skill less-is-more
Открыть навык

Specs

Category
Surfaces
Tier
Free
Built with
React and TypeScript
Files
16
Size
306 KB
Needs
framer-motion
Install
npx velvo add sheet
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

surfacesgesturefreereact
ДальшеContext menu