// Copyright (c) Meta Platforms, Inc. and affiliates. 'use client'; import {ToggleButton} from '@astryxdesign/core/ToggleButton'; import {Stack} from '@astryxdesign/core/Layout'; import {Text} from '@astryxdesign/core/Text'; import {Icon} from '@astryxdesign/core/Icon'; import {StarIcon as StarOutline} from '@heroicons/react/24/outline'; import {StarIcon as StarSolid} from '@heroicons/react/24/solid'; export default function ToggleButtonStates() { return ( Default } pressedIcon={} isPressed={false} onPressedChange={() => {}} /> } pressedIcon={} isPressed={false} onPressedChange={() => {}} isIconOnly /> Pressed } pressedIcon={} isPressed={true} onPressedChange={() => {}} /> } pressedIcon={} isPressed={true} onPressedChange={() => {}} isIconOnly /> Disabled } isPressed={false} onPressedChange={() => {}} isDisabled /> } isPressed={false} onPressedChange={() => {}} isIconOnly isDisabled /> Loading } isPressed={false} onPressedChange={() => {}} isLoading /> } isPressed={false} onPressedChange={() => {}} isIconOnly isLoading /> ); }