feat: add experimental fdp (#681)

* feat: add experimental fdp

* ci: update swarm-actions to v1

* fix: fix eslint violations

* refactor: decaf
This commit is contained in:
Cafe137
2024-11-21 12:43:30 +01:00
committed by GitHub
parent 63f338075b
commit d0c94b7316
24 changed files with 1297 additions and 7 deletions
+22
View File
@@ -0,0 +1,22 @@
interface Props {
children: React.ReactNode
p?: string
gap?: number
between?: boolean
background?: string
}
export function Horizontal({ children, p = '0', gap = 8, between, background }: Props) {
const style = {
display: 'flex',
flexDirection: 'row' as 'row', //eslint-disable-line
alignItems: 'center',
justifyContent: between ? 'space-between' : 'flex-start',
gap: `${gap}px`,
padding: p,
background,
width: between ? '100%' : 'auto',
}
return <div style={style}>{children}</div>
}