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: 'ToggleButton',
name: 'ToggleButton — Icon Swap',
displayName: 'ToggleButton — Icon Swap',
description: 'Icon-only toggle buttons that swap between outline and solid icons when pressed. Use for actions like favorite, bookmark, or mute where the icon itself communicates the state.',
isReady: true,
aspectRatio: 16 / 9,
componentsUsed: ['ToggleButton', 'Layout', 'Text', 'Icon'],
icons: {
BellIcon: 'notification',
BellSlashIcon: 'notificationOff',
BookmarkIcon: 'bookmark',
StarIcon: 'star',
},
};