File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
src/app/conf/_design-system Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -2,11 +2,13 @@ import { clsx } from "clsx"
2
2
import { Anchor } from "./anchor"
3
3
4
4
type Size = "md" | "lg"
5
+ type Variant = "primary" | "secondary"
5
6
6
7
// eslint-disable-next-line @typescript-eslint/no-namespace
7
8
export declare namespace ButtonProps {
8
9
export interface BaseProps {
9
10
size ?: Size
11
+ variant ?: Variant
10
12
}
11
13
12
14
export interface AnchorProps
@@ -54,11 +56,11 @@ export type ButtonProps =
54
56
55
57
export function Button ( props : ButtonProps ) {
56
58
const className = clsx (
57
- "relative flex items-center justify-center gap-2.5 rounded-lg font-normal text-base/none text-neu-0 font-sans h-14 px-8 data-[size=md]:h-12" ,
59
+ "relative flex items-center justify-center gap-2.5 font-normal text-base/none text-neu-0 font-sans h-14 px-8 data-[size=md]:h-12 data-[variant=secondary]:bg-neu-100 data-[variant=secondary]:light:text-neu-900 " ,
58
60
props . className ,
59
61
)
60
62
61
- const styleAttrs = { "data-size" : props . size }
63
+ const styleAttrs = { "data-size" : props . size , "data-variant" : props . variant }
62
64
63
65
if ( "href" in props && typeof props . href === "string" ) {
64
66
const { className : _1 , size : _2 , children, ...rest } = props
You can’t perform that action at this time.
0 commit comments