mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-31 13:49:12 +08:00
init: the first public commit for AFFiNE
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
import { styled } from '../styled';
|
||||
|
||||
interface ClickableProps {
|
||||
active?: boolean;
|
||||
}
|
||||
|
||||
export const Clickable = styled('div')<ClickableProps>(({ theme, active }) => {
|
||||
return {
|
||||
...theme.affine.typography.sm,
|
||||
backgroundColor: active
|
||||
? theme.affine.palette.hover
|
||||
: theme.affine.palette.white,
|
||||
cursor: 'pointer',
|
||||
color: theme.affine.palette.menu,
|
||||
borderRadius: '5px',
|
||||
|
||||
'&:hover': {
|
||||
backgroundColor: theme.affine.palette.hover,
|
||||
},
|
||||
};
|
||||
});
|
||||
@@ -0,0 +1 @@
|
||||
export { Clickable } from './Clickable';
|
||||
Reference in New Issue
Block a user