<StyledLink> Component

Primary


Hello world
Share
Code Editor
<StyledLink href="#shop" variant="primary" text="Hello world" />

Secondary


Hello world
Share
Code Editor
<StyledLink href="#shop" variant="secondary" text="Hello world" />

Colors

Share
Code Editor
<Columns align={{ x: 'start' }}>
<StyledLink href="#shop" variant="primary" text="Hello world" themeColor="navy" />
<StyledLink href="#shop" variant="secondary" text="Hello world" themeColor="navy" />
</Columns>

Layout considerations

By default <StyledLink /> will span the full width of their container

Share
Code Editor
<Stack >
<StyledLink href="#shop" variant="primary" text="Hello world" />
<StyledLink href="#shop" variant="secondary" text="Hello world" />
</Stack>

It's easy to use CSS grid layout, or a component's abstraction to align

Share
Code Editor
<Columns align={{ x: 'start' }}>
<StyledLink href="#shop" variant="primary" text="Hello world" />
<StyledLink href="#shop" variant="secondary" text="Hello world" />
</Columns>