-
Notifications
You must be signed in to change notification settings - Fork 212
Expand file tree
/
Copy pathbadge.js
More file actions
40 lines (39 loc) · 1.2 KB
/
badge.js
File metadata and controls
40 lines (39 loc) · 1.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/*
* Copyright (c) 2021, salesforce.com, inc.
* All rights reserved.
* SPDX-License-Identifier: BSD-3-Clause
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause
*/
import {defineRecipe} from '@chakra-ui/react'
export default defineRecipe({
variants: {
variant: {
solid: {
display: 'inline-flex',
alignItems: 'center',
justifyContent: 'center',
borderRadius: 'md',
fontWeight: 'medium',
fontSize: 'xs',
lineHeight: '1.2',
textTransform: 'uppercase',
letterSpacing: 'wider'
},
notification: {
display: 'inline-flex',
justifyContent: 'center',
position: 'absolute',
top: 0,
right: 0,
minWidth: 5,
height: 5,
color: 'white',
fontSize: 'xs',
backgroundColor: 'blue.600',
border: '1px solid',
borderColor: 'white',
borderRadius: 'full'
}
}
}
})