feat(system): add radius to Image primitive

This commit is contained in:
Pavel Prichodko 2022-03-18 19:13:40 +01:00
parent 0adf32dc7a
commit 3370171ddf
No known key found for this signature in database
GPG Key ID: 0EB8D75C775AB6F1
2 changed files with 34 additions and 1 deletions

View File

@ -12,8 +12,17 @@ export const Base = styled('img', {
variants: {
radius: {
1: {
borderRadius: '$1',
},
2: {
borderRadius: '$2',
},
full: {
borderRadius: '100%',
borderRadius: '$full',
},
bubble: {
borderRadius: '16px 16px 4px 16px',
},
},
fit: {

View File

@ -0,0 +1,24 @@
export { Avatar } from './avatar'
export { Box } from './box'
export { Button } from './button'
export { ContextMenu, ContextMenuTrigger } from './context-menu'
export {
AlertDialog,
AlertDialogTrigger,
Dialog,
DialogTrigger,
} from './dialog'
export { DropdownMenu, DropdownMenuTrigger } from './dropdown-menu'
export { EthAddress } from './eth-address'
export { Flex } from './flex'
export { Grid } from './grid'
export { Heading } from './heading'
export { Icon } from './icon'
export { IconButton } from './icon-button'
export { Image } from './image'
export { Popover, PopoverTrigger } from './popover'
export { Separator } from './separator'
export { Text } from './text'
export { TextInput } from './text-input'
export { Tooltip } from './tooltip'
export { VisuallyHidden } from './visually-hidden'