-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: migrate vui-source changes to v3.10.0 (#195)
- Loading branch information
Showing
3 changed files
with
29 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,30 @@ | ||
import { VuiButtonPrimary } from "../../../lib"; | ||
import { useState } from "react"; | ||
import { VuiButtonPrimary, VuiSpacer, VuiToggle } from "../../../lib"; | ||
|
||
export const Link = () => { | ||
const [isDisabled, setIsDisabled] = useState<boolean>(false); | ||
|
||
return ( | ||
<VuiButtonPrimary | ||
color="accent" | ||
href="https://vectara.com" | ||
target="_blank" | ||
onClick={() => console.log("click")} | ||
onMouseOver={() => console.log("mouse over")} | ||
onMouseOut={() => console.log("mouse out")} | ||
> | ||
Visit Vectara.com | ||
</VuiButtonPrimary> | ||
<> | ||
<VuiToggle | ||
label="Disabled (not clickable, visual)" | ||
checked={isDisabled} | ||
onChange={() => setIsDisabled(!isDisabled)} | ||
/> | ||
|
||
<VuiSpacer size="m" /> | ||
|
||
<VuiButtonPrimary | ||
color="accent" | ||
href="https://vectara.com" | ||
target="_blank" | ||
onClick={() => console.log("click")} | ||
onMouseOver={() => console.log("mouse over")} | ||
onMouseOut={() => console.log("mouse out")} | ||
isDisabled={isDisabled} | ||
> | ||
Visit Vectara.com | ||
</VuiButtonPrimary> | ||
</> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters