-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8673 from amit-ksh/chakra/tabs
Migrate Tabs to Chakra
- Loading branch information
Showing
3 changed files
with
56 additions
and
59 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import type { ComponentStyleConfig } from "@chakra-ui/theme" | ||
|
||
export const Tabs: ComponentStyleConfig = { | ||
variants: { | ||
primary: { | ||
tab: { | ||
borderTopRadius: "0.3rem", | ||
borderBottom: "1px solid", | ||
borderBottomColor: "primary", | ||
px: 4, | ||
py: "0.3rem", | ||
_selected: { | ||
color: "background", | ||
bg: "primary", | ||
}, | ||
}, | ||
tabpanels: { | ||
mt: 4, | ||
}, | ||
tabpanel: { | ||
p: 6, | ||
bg: "ednBackground", | ||
border: "1px solid", | ||
borderColor: "lightBorder", | ||
borderRadius: "lg", | ||
}, | ||
}, | ||
}, | ||
defaultProps: { | ||
variant: "primary", | ||
}, | ||
} |
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