@sobagu/solid
v0.1.2
Published
Sobagu CSS for Solid: Box, Stack, Grid, Text and the use:sb directive
Maintainers
Readme
@sobagu/solid
Sobagu for Solid: Box, Stack, Grid and Text components with the same style props as the
React package (and reactive, so signals update the classes in place), plus a use:sb directive.
Install
npm i @sobagu/solidNeeds solid-js 1.8 or newer. @sobagu/core is installed with it.
Usage
import { createSignal } from 'solid-js'
import { Box, Stack, Text } from '@sobagu/solid'
export function Card() {
const [active, setActive] = createSignal(false)
return (
<Stack row gap="md" md={{ gap: 'lg' }}>
<Text size="lg" weight="bold">Hello</Text>
<Box p="md" radius="lg" bg={active() ? 'primary' : 'surface'} onClick={() => setActive(!active())}>
Click me
</Box>
</Stack>
)
}Docs
Sobagu is in 0.x: the API can still change between minor versions.
Licence
MIT © 2026 Sobagu contributors
