mirror of
https://github.com/pawelmalak/flame.git
synced 2026-03-08 05:23:11 +08:00
Outsourced ModalForm to make it more reusable
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
.InputGroup {
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
|
||||
.InputGroup label,
|
||||
.InputGroup span,
|
||||
.InputGroup input {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.InputGroup input {
|
||||
margin: 8px 0;
|
||||
width: 100%;
|
||||
border: none;
|
||||
border-radius: 4px;
|
||||
padding: 10px;
|
||||
background-color: var(--color-primary);
|
||||
color: var(--color-background);
|
||||
}
|
||||
|
||||
.InputGroup span {
|
||||
font-size: 12px;
|
||||
color: var(--color-primary)
|
||||
}
|
||||
|
||||
.InputGroup span a {
|
||||
color: var(--color-accent);
|
||||
}
|
||||
15
client/src/components/UI/Forms/InputGroup/InputGroup.tsx
Normal file
15
client/src/components/UI/Forms/InputGroup/InputGroup.tsx
Normal file
@@ -0,0 +1,15 @@
|
||||
import classes from './InputGroup.module.css';
|
||||
|
||||
interface ComponentProps {
|
||||
children: JSX.Element | JSX.Element[];
|
||||
}
|
||||
|
||||
const InputGroup = (props: ComponentProps): JSX.Element => {
|
||||
return (
|
||||
<div className={classes.InputGroup}>
|
||||
{props.children}
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
export default InputGroup;
|
||||
Reference in New Issue
Block a user