An open source design system that's fully customizable and agent ready
TypeScript
// Copyright (c) Meta Platforms, Inc. and affiliates.
/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */
export const doc = {
type: 'block',
exampleFor: 'createDragToSnapPoints',
name: 'createDragToSnapPoints — Playing card in plain JavaScript',
displayName: 'createDragToSnapPoints — Playing card in plain JavaScript',
description:
'The three-place playing card from the useDragToSnapPoints example, built in plain JavaScript with createDragToSnapPoints: a sideways drag settles it on the nearest place or the next after a flick, buttons settle it from the keyboard, and a live region announces the place. React only mounts it.',
isReady: true,
aspectRatio: 4 / 3,
componentsUsed: [],
};