@ta-interaktiv/react-disco-grid
v2.2.2
Published
Containers that mimic the grid of a disco article
Downloads
332
Keywords
Readme
@ta-interaktiv/react-disco-grid
Containers that mimic the grid of a disco article.
Usage
import { TextWidth, ContentWidth, TextWidthExtended } from '@ta-interaktiv/react-disco-grid'
export const parentComponent = () => {
return <>
<ContentWidth>I am as wide as the widest element on the page</ContentWidth>
<TextWidth>I am as wide as text</TextWidth>
<TextWidthExtended>I am a bit wider than the text</TextWidthExtended>
</>
}