mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-19 11:06:25 +08:00
init: the first public commit for AFFiNE
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
import * as React from 'react';
|
||||
/* eslint-disable no-restricted-imports */
|
||||
import MuiRadio, { type RadioProps } from '@mui/material/Radio';
|
||||
import { styled } from '../styled';
|
||||
|
||||
// TODO: sync online icon
|
||||
// import {
|
||||
// SingleSelectBoxUncheckIcon,
|
||||
// SingleSelectBoxCheckIcon,
|
||||
// } from '@toeverything/components/icons';
|
||||
|
||||
export { RadioProps };
|
||||
|
||||
export const Radio = (props: RadioProps) => {
|
||||
return (
|
||||
<StyledRadio
|
||||
// icon={<SingleSelectBoxUncheckIcon />}
|
||||
// checkedIcon={<SingleSelectBoxCheckIcon />}
|
||||
{...props}
|
||||
/>
|
||||
);
|
||||
};
|
||||
|
||||
const StyledRadio = styled(MuiRadio)`
|
||||
padding: 0;
|
||||
color: #b9cad5;
|
||||
&.Mui-checked {
|
||||
color: #b9cad5;
|
||||
}
|
||||
`;
|
||||
@@ -0,0 +1,2 @@
|
||||
export { Radio } from './Radio';
|
||||
export type { RadioProps } from './Radio';
|
||||
Reference in New Issue
Block a user