Skip to content

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

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

'use client';

import {useState} from 'react';
import {Switch} from '@astryxdesign/core/Switch';

export default function SwitchWithDescription() {
  const [value, setValue] = useState(false);
  return (
    <Switch
      label="Dark mode"
      description="Switch to a darker color scheme."
      value={value}
      onChange={setValue}
    />
  );
}