Add missing button code
This commit is contained in:
parent
1bb3f373c3
commit
75083f28aa
@ -12,6 +12,7 @@ export function button({
|
||||
submit = false,
|
||||
icon,
|
||||
centered = false,
|
||||
classes = [],
|
||||
}: {
|
||||
text: string;
|
||||
href: string;
|
||||
@ -20,6 +21,7 @@ export function button({
|
||||
submit?: boolean;
|
||||
icon?: string;
|
||||
centered?: boolean;
|
||||
classes?: string[];
|
||||
}): JSX.Element {
|
||||
const classstr = `button button--color-${variant}`;
|
||||
if (submit) {
|
||||
@ -33,6 +35,7 @@ export function button({
|
||||
"button",
|
||||
`button--color-${variant}`,
|
||||
{ "button--centered": centered },
|
||||
...classes,
|
||||
]}
|
||||
href={disabled ? false : href}
|
||||
disabled={disabled}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user