An open source design system that's fully customizable and agent ready
TypeScript
// Copyright (c) Meta Platforms, Inc. and affiliates.
'use client';
import {useState} from 'react';
import {Switch} from '@astryxdesign/core/Switch';
export default function SwitchDisabled() {
const [value, setValue] = useState(false);
return (
<Switch
label="Premium feature"
description="Upgrade to enable this option"
value={value}
onChange={setValue}
isDisabled
/>
);
}