Created
November 29, 2024 16:09
-
-
Save johnlindquist/1b5734e373614cf844ce595d208b4834 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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