Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions osmium/src/mdx-components.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import { Tabs, TabList, TabPanel, Tab } from "./ui/tabs";

export { Callout } from "./ui/callout";
export { QuickLinks } from "./ui/quick-links";
export { ImageLink } from "./ui/image-link";

const EraserLinkImpl = clientOnly(() => import("./ui/eraser-link"));

Expand Down
4 changes: 2 additions & 2 deletions src/components/ImageLink.tsx → osmium/src/ui/image-link.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ export const logos: { [key: string]: { file: string; style?: string } } = {
uno: { file: "uno.svg" },
};

export type ImageLinksProps = {
export type ImageLinkProps = {
title: string;
logo: keyof typeof logos;
href: string;
};

export const ImageLink: ParentComponent<ImageLinksProps> = (props) => {
export const ImageLink: ParentComponent<ImageLinkProps> = (props) => {
const locale = useLocale();

const logoImage = untrack(() => props.logo);
Expand Down
12 changes: 6 additions & 6 deletions src/routes/(2)guides/(0)styling-your-components.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ Solid also supports a range of styling methods - from traditional CSS preprocess

<div class="flex flex-col md:grid md:grid-cols-2 md:grid-rows-1 gap-3">

<ImageLinks title="SASS" href="/guides/styling-components/sass" logo="sass" />
<ImageLinks title="LESS" href="/guides/styling-components/less" logo="less" />
<ImageLink title="SASS" href="/guides/styling-components/sass" logo="sass" />
<ImageLink title="LESS" href="/guides/styling-components/less" logo="less" />

</div>

Expand All @@ -35,7 +35,7 @@ LESS

## CSS modules

<ImageLinks
<ImageLink
title="CSS Modules"
href="/guides/styling-components/css-modules"
logo="cssmodules"
Expand All @@ -56,7 +56,7 @@ Many also offer features like theming, media queries, and server-side rendering

### Macaron

<ImageLinks
<ImageLink
title="Macaron"
href="/guides/styling-components/macaron"
logo="macaron"
Expand All @@ -67,11 +67,11 @@ CSS frameworks provide pre-styled components and utility classes to speed up dev

<div class="flex flex-col md:grid md:grid-cols-2 md:grid-rows-1 gap-3">

<ImageLinks
<ImageLink
title="Tailwind CSS"
href="/guides/styling-components/tailwind"
logo="tailwind"
/>
<ImageLinks title="UnoCSS" href="/guides/styling-components/uno" logo="uno" />
<ImageLink title="UnoCSS" href="/guides/styling-components/uno" logo="uno" />

</div>
2 changes: 1 addition & 1 deletion src/routes/reference/jsx-attributes/classlist.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ description: >-
Toggle element classes from an object of class names and boolean values.
---

:::warning
:::caution
`className` was deprecated in Solid 1.4 in favor of `class`.
:::

Expand Down
Loading