init: the first public commit for AFFiNE
This commit is contained in:
21
libs/components/ui/src/clickable/Clickable.tsx
Normal file
21
libs/components/ui/src/clickable/Clickable.tsx
Normal file
@@ -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,
|
||||
},
|
||||
};
|
||||
});
|
||||
1
libs/components/ui/src/clickable/index.ts
Normal file
1
libs/components/ui/src/clickable/index.ts
Normal file
@@ -0,0 +1 @@
|
||||
export { Clickable } from './Clickable';
|
||||
Reference in New Issue
Block a user