mirror of
https://github.com/snapotter-hq/SnapOtter.git
synced 2026-08-03 07:46:42 +02:00
feat(videos): add shared animation components (grain, clip reveal, tool pill, counter, etc.)
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
import type React from "react";
|
||||
import { COLOR } from "@/lib/colors";
|
||||
import { TEXT } from "@/lib/fonts";
|
||||
|
||||
export const ToolPill: React.FC<{
|
||||
name: string;
|
||||
category: string;
|
||||
style?: React.CSSProperties;
|
||||
}> = ({ name, category, style }) => {
|
||||
const color = COLOR.category[category] ?? COLOR.accent;
|
||||
return (
|
||||
<div
|
||||
style={{
|
||||
display: "inline-flex",
|
||||
alignItems: "center",
|
||||
padding: "4px 12px",
|
||||
borderRadius: 6,
|
||||
backgroundColor: color,
|
||||
color: "white",
|
||||
...TEXT.toolPill,
|
||||
whiteSpace: "nowrap",
|
||||
...style,
|
||||
}}
|
||||
>
|
||||
{name}
|
||||
</div>
|
||||
);
|
||||
};
|
||||
Reference in New Issue
Block a user