import { Component, For } from 'solid-js'; import styles from './PillToggle.module.css'; export interface PillToggleOption { value: string; label: string; } export interface PillToggleProps { options: ReadonlyArray; value: () => string; onChange: (v: string) => void; /** Optional aria label for the group. */ ariaLabel?: string; disabled?: boolean; } export const PillToggle: Component = (props) => { return (
{(opt) => ( )}
); };