mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-11-14 21:26:08 +01:00
feat: start of cards
This commit is contained in:
1 parent
c5f5f69fd6
commit
db8ac195d4
6 files changed
+58
-11
No files matched your search
@@ -1,4 +1,5 @@
|
||||
import type { ComponentProps } from "react";
|
||||
import { classNames } from "../../core/ui/classNames";
|
||||
import type { Color } from "../../core/ui/color";
|
||||
import "./index.css";
|
||||
|
||||
@@ -7,10 +8,15 @@ export interface TextProps extends ComponentProps<"span"> {
|
||||
lowContrast?: boolean;
|
||||
}
|
||||
|
||||
export function Text({ color = "gray", lowContrast, ...props }: TextProps) {
|
||||
export function Text({
|
||||
color = "gray",
|
||||
lowContrast,
|
||||
className,
|
||||
...props
|
||||
}: TextProps) {
|
||||
return (
|
||||
<span
|
||||
className="text"
|
||||
className={classNames("text", className)}
|
||||
style={{ color: `var(--${color}-${lowContrast ? 11 : 12})` }}
|
||||
{...props}
|
||||
/>
|
||||
|
||||
Reference in new issue
Block a user