Navigation
Inputs & Forms
Selection
Containers & Overlays
Chip Sortable
Compact elements to filter, choose, sort or enter several values.
Overview
ChipSortable orders chips by dragging them to a new position.
Values: JavaScript, TypeScript, React, Vue, Angular, Node.js, Express, Next.js, Svelte, Python, Java, C++, Go, Rust, PHP, Ruby
"use client";import React, {useState} from "react";import {ChipSortable, ChipSortableType, IconCheck} from "@brynlabs/fusion-ui";const values: ChipSortableType[] = [{label: "JavaScript", icon: <IconCheck />},{label: "TypeScript", icon: <IconCheck />},{label: "React"},{label: "Vue"},{label: "Angular"},{label: "Node.js"},{label: "Express"},{label: "Next.js"},{label: "Svelte"},{label: "Python"},{label: "Java"},{label: "C++"},{label: "Go"},{label: "Rust"},{label: "PHP"},{label: "Ruby"},];export const ChipSortableExample = () => {const [chips, setChips] = useState(values);return (<><ChipSortabletitle={"Sortable"}chips={chips}hasRemoveButtons={true}onChange={v => setChips(v)}/><div style={{marginTop: "50px"}}>Values: {chips.map(c => c.label).join(", ")}</div></>);};

