mirror of
https://github.com/Xevion/dynamic-preauth.git
synced 2025-12-13 14:11:27 -06:00
Add badge highlighting with animated border transitions, use className in BadgeProps
This commit is contained in:
@@ -6,7 +6,7 @@ type EmboldenedProps = {
|
||||
copyable?: boolean;
|
||||
};
|
||||
|
||||
const Emboldened = ({ children, copyable }: EmboldenedProps) => {
|
||||
const Emboldened = ({ children, copyable, className }: EmboldenedProps) => {
|
||||
function copyToClipboard() {
|
||||
// Copy to clipboard
|
||||
navigator.clipboard.writeText(children.toString());
|
||||
@@ -16,6 +16,7 @@ const Emboldened = ({ children, copyable }: EmboldenedProps) => {
|
||||
<span
|
||||
onClick={copyable ? copyToClipboard : undefined}
|
||||
className={cn(
|
||||
className,
|
||||
"bg-zinc-900/40 rounded border border-zinc-700 py-0.5 px-1 font-mono text-teal-400",
|
||||
{
|
||||
"cursor-pointer": copyable,
|
||||
|
||||
Reference in New Issue
Block a user