Skip to content

Commit

Permalink
Fix doc example syntax highlightings
Browse files Browse the repository at this point in the history
  • Loading branch information
relliv committed Oct 2, 2024
1 parent d48a5b3 commit c4cfb54
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions docs/docs/react/usage.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Use the following steps to use the Nx React SVG Loaders in your React project.

Import selected `Nx{SELECTED}Loader` component into your component or module and then use with `<Nx{SELECTED}Loader>` tag.

```js title="app.tsx"
```tsx title="app.tsx"
import { useState } from "react";

// highlight-next-line
Expand Down Expand Up @@ -40,7 +40,7 @@ const App = (props: IAppProps) => {
You can set custom color to the loader by passing `style.color` prop to the loader component or any parent element.
SVG loader will inherit the color from the parent element with `currentColor` value.

```js title="app.tsx"
```tsx title="app.tsx"
// highlight-next-line
import { NxOvalLoader } from "@ngeenx/nx-react-svg-loaders";

Expand Down Expand Up @@ -74,7 +74,7 @@ You can set horizontal alignment to the loader by passing `isCentered` prop to t

First you need to import the styles in your `styles.scss` or `App.svelte` file (also see source code of the **[styles.css](https://github.com/ngeenx/nx-svg-loaders/blob/main/libs/utils/nx-svg-shared-utils/src/styles/base-loader.component.scss)**).

```js title="App.tsx"
```tsx title="App.tsx"
...

// highlight-next-line
Expand Down
6 changes: 3 additions & 3 deletions docs/docs/svelte/usage.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Use the following steps to use the Nx Svelte SVG Loaders in your Svelte project.

Import selected `Nx{SELECTED}Loader` component into your component or module and then use with `<Nx{SELECTED}Loader>` tag.

```js title="app.svelte"
```html title="app.svelte"
<script lang="ts">
// highlight-next-line
import { NxOvalLoader } from '@ngeenx/nx-svelte-svg-loaders';
Expand Down Expand Up @@ -43,7 +43,7 @@ Import selected `Nx{SELECTED}Loader` component into your component or module and
You can set custom color to the loader by passing `style.color` prop to the loader component or any parent element.
SVG loader will inherit the color from the parent element with `currentColor` value.
```js title="app.svelte"
```html title="app.svelte"
<div>
<!-- ... -->
Expand Down Expand Up @@ -77,7 +77,7 @@ First you need to import the styles in your `styles.scss` or `App.tsx` file (als
Then you can use the `isCentered` prop in your component.
```js title="app.svelte"
```html title="app.svelte"
<div>
// highlight-next-line
<NxHeartsLoader isLoading={true} size={100} isCentered={true} />
Expand Down
6 changes: 3 additions & 3 deletions docs/docs/vue/usage.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Import selected `Nx{SELECTED}Loader` component into your component or module and

<Tabs>
<TabItem value="options-api" label="Options API" default>
```js title="app.vue"
```html title="app.vue"
<template>
<div>
// highlight-next-line
Expand Down Expand Up @@ -48,7 +48,7 @@ export default {
```
</TabItem>
<TabItem value="composition-api" label="Composition API">
```js title="app.vue"
```html title="app.vue"
<template>
<div>
// highlight-next-line
Expand Down Expand Up @@ -98,7 +98,7 @@ You can set horizontal alignment to the loader by passing `isCentered` prop to t
First you need to import the styles in your `styles.scss` or `App.vue` file (also see source code of the **[styles.css](https://github.com/ngeenx/nx-svg-loaders/blob/main/libs/utils/nx-svg-shared-utils/src/styles/base-loader.component.scss)**).
```js title="App.vue"
```html title="App.vue"
<template>
<div>
// highlight-next-line
Expand Down

0 comments on commit c4cfb54

Please sign in to comment.