Skip to content

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

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

'use client';

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

const OPTIONS = ['Design', 'Engineering', 'Marketing', 'Operations'];

export default function MultiSelectorBottomSheet() {
  const [value, setValue] = useState<string[]>([]);

  return (
    <div style={{width: 320, maxWidth: '100%'}}>
      <MultiSelector
        label="Teams"
        options={OPTIONS}
        value={value}
        onChange={setValue}
        placeholder="Choose teams"
        hasSelectAll
        presentation="bottom-sheet"
      />
    </div>
  );
}