Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
26 lines
688 B
Plaintext
26 lines
688 B
Plaintext
import React from 'react';
|
|
import './index.scss';
|
|
export type SelectablePill = {
|
|
key?: string;
|
|
Label?: React.ReactNode;
|
|
name: string;
|
|
selected: boolean;
|
|
};
|
|
export type Props = {
|
|
draggable?: {
|
|
onDragEnd: (args: {
|
|
moveFromIndex: number;
|
|
moveToIndex: number;
|
|
}) => void;
|
|
};
|
|
onClick?: (args: {
|
|
pill: SelectablePill;
|
|
}) => Promise<void> | void;
|
|
pills: SelectablePill[];
|
|
};
|
|
/**
|
|
* Displays a wrappable list of pills that can be selected or deselected.
|
|
* If `draggable` is true, the pills can be reordered by dragging.
|
|
*/
|
|
export declare const PillSelector: React.FC<Props>;
|
|
//# sourceMappingURL=index.d.ts.map |