Skip to content

Instantly share code, notes, and snippets.

@johnlindquist
Created November 29, 2024 16:09
Show Gist options
  • Save johnlindquist/1b5734e373614cf844ce595d208b4834 to your computer and use it in GitHub Desktop.
Save johnlindquist/1b5734e373614cf844ce595d208b4834 to your computer and use it in GitHub Desktop.
// Name: Testing Currently Active
import "@johnlindquist/kit";
import { Choice } from "@johnlindquist/kit";
const css = `
.active {
background-color: green;
}
`;
const choices: Choice<any>[] = [
{
name: "One",
value: "one",
},
{
name: "Two",
value: "two",
className: "active",
},
{
name: "Three",
value: "three",
},
];
const result = await arg(
{
css,
},
choices
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment