mirror of https://github.com/MaxLeiter/Drift
use custom input/buttons on postlist/new page
parent
dfe0d39fa0
commit
45c2e59105
@ -0,0 +1,13 @@
|
||||
.button-group {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
flex-wrap: nowrap;
|
||||
justify-content: flex-start;
|
||||
align-items: stretch;
|
||||
align-content: stretch;
|
||||
}
|
||||
|
||||
.button-group > * {
|
||||
flex: 1 1 auto;
|
||||
margin: 0;
|
||||
}
|
||||
@ -0,0 +1,14 @@
|
||||
import styles from "./button-group.module.css"
|
||||
|
||||
export default function ButtonGroup({
|
||||
children,
|
||||
...props
|
||||
}: {
|
||||
children: React.ReactNode | React.ReactNode[]
|
||||
} & React.HTMLAttributes<HTMLDivElement>) {
|
||||
return (
|
||||
<div className={styles["button-group"]} {...props}>
|
||||
{children}
|
||||
</div>
|
||||
)
|
||||
}
|
||||
Loading…
Reference in New Issue