Files
twenty/front/src/components/form/Checkbox.tsx
T
2023-04-18 17:37:20 +02:00

24 lines
438 B
TypeScript

import * as React from 'react';
import styled from '@emotion/styled';
type OwnProps = {
name: string;
id: string;
};
const StyledContainer = styled.span`
input[type='checkbox'] {
accent-color: ${(props) => props.theme.purple};
}
`;
function Checkbox({ name, id }: OwnProps) {
return (
<StyledContainer>
<input type="checkbox" id={id} name={name}></input>
</StyledContainer>
);
}
export default Checkbox;