Skip to content
Snippets Groups Projects
Commit 6d4e9ae6 authored by Manoa Harinjo's avatar Manoa Harinjo
Browse files

add option button

parent 1386f55e
No related branches found
No related tags found
No related merge requests found
...@@ -9,10 +9,19 @@ interface Props { ...@@ -9,10 +9,19 @@ interface Props {
className?: string className?: string
style?: "outline" | undefined style?: "outline" | undefined
color?: "primary" | "secondary" | undefined color?: "primary" | "secondary" | undefined
options?: any
} }
const Button = (props: Props) => { const Button = (props: Props) => {
const { children, name = "", url = "#", className, style, color } = props const {
children,
name = "",
url = "#",
className,
style,
color,
options,
} = props
const isPrimary = color === "primary" const isPrimary = color === "primary"
const isSecondary = color === "secondary" const isSecondary = color === "secondary"
...@@ -26,7 +35,8 @@ const Button = (props: Props) => { ...@@ -26,7 +35,8 @@ const Button = (props: Props) => {
isPrimary && "btn-primary", isPrimary && "btn-primary",
isSecondary && "btn-secondary", isSecondary && "btn-secondary",
isOutline && "btn-outline", isOutline && "btn-outline",
className className,
options?.action
)} )}
> >
{name} {name}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment