Skip to content

An open source design system that's fully customizable and agent ready

TypeScript
658 B
Raw Blame
// Copyright (c) Meta Platforms, Inc. and affiliates.

/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */
export const doc = {
  type: 'block',
  exampleFor: 'useSnapPaging',
  name: 'useSnapPaging — Onboarding Pages',
  displayName: 'useSnapPaging — Onboarding Pages',
  description:
    "Onboarding cards in a Carousel with hasSnap={useSnapPaging()}: under a finger or a trackpad swipe, each flick moves one view and rests on a card's start edge. A switch picks one view or one card per flick through the hook's pages option.",
  isReady: true,
  aspectRatio: 4 / 3,
  componentsUsed: ['Carousel', 'Card', 'Layout', 'Switch', 'Text'],
};