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

Swipe row Бесплатно

Slide for actions. Swipe all the way and the edge button meets your finger.

Открыть в редакторе
Показано в
InboxMail
2 new
Mia Collins09:12Dinner on Friday?Found a place in Borough that does the best
Jake Turner08:47Leg day planSent you Thursday’s session, it has the new
Sam ReidYesterdayPhotos from the weekendThere are about forty, here are the good ones
Dan HughesYesterdayRe: flat viewingSaturday at 11 works. I’ll meet you outside
Mia CollinsTueBook clubWe’re on chapter nine, no spoilers please

Swipe a message left to archive, right to pin. Swipe all the way to do it in one go.

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

Подходит для

  • Quick, repeated actions on list items: archive, done, pin.
  • Lists people scan and clear, like an inbox or today’s habits.

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

  • The only way to do something. Put the same actions in a menu too.
  • Destructive actions with no Undo.

Пропсы

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

ПропсТипПо умолчанию
childrenОбязательныйReactNode
leadingSwipeAction[]Shown when you swipe right, left to right.[]
trailingSwipeAction[]Shown when you swipe left, left to right.[]
onActionОбязательный(id: string) => void
fullSwipebooleanWhether a long swipe runs the edge action.true
labelstring

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

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

Motion with weightБесплатно

Keeps its springs and press feel intact when your agent wires it into your app.

$npx velvo skill velvo-motion
Открыть навык
Empty, loading and error statesPro

Designs its empty, loading and error moments, the ones that usually get forgotten.

Входит в ProОткрыть навык

Specs

Category
Drag and drop
Tier
Free
Built with
React and TypeScript
Files
17
Size
369 KB
Needs
framer-motion
Install
npx velvo add swipe-row
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

drag and dropgesturefreereact
ДальшеReorder list