const greeting = "Hello, Hyena";console.log(greeting);
export function cn(...inputs: ClassValue[]): string {return twMerge(clsx(inputs));}
1import { useState } from "react";23export function Counter() {4 const [count, setCount] = useState(0);56 return (7 <button onClick={() => setCount(c => c + 1)}>8 Count: {count}9 </button>10 );11}
1import { useState } from "react";23export function useToggle(initial = false) {4 const [value, setValue] = useState(initial);5 const toggle = () => setValue(v => !v);6 return [value, toggle] as const;7}
export function Badge({ children }: { children: React.ReactNode }) {return <span className="badge">{children}</span>;}
.badge {font-size: 12px;padding: 2px 8px;border-radius: 4px;background: var(--color-muted);}
npm install @hyena-studio/uinpx hyena-studio init
1import { useState } from "react";23export function Counter() {4 const [count, setCount] = useState(0);56 return (7 <button onClick={() => setCount(c => c + 1)}>8 Count: {count}9 </button>10 );11}