Skip to content

Commit 39a0bd3

Browse files
chore(format): 🤖 ✨ (#227)
Co-authored-by: ecoscript[bot] <143032650+ecoscript[bot]@users.noreply.github.com>
1 parent cbdfe8d commit 39a0bd3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎README.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,10 +173,10 @@ const components: PortableTextComponents = {
173173
An object of React components that renders portable text blocks with different `style` properties. The object has the shape `{styleName: ReactComponent}`, where `styleName` is the value set in individual `style` attributes on blocks (`normal` being the default).
174174

175175
```tsx
176-
import { PortableText, PortableTextReactComponents } from "@portabletext/react";
176+
import {PortableText, PortableTextReactComponents} from '@portabletext/react'
177177

178178
// `components` object you'll pass to PortableText
179-
const components:Partial<PortableTextReactComponents> = {
179+
const components: Partial<PortableTextReactComponents> = {
180180
block: {
181181
// Ex. 1: customizing common block types
182182
h1: ({children}) => <h1 className="text-2xl">{children}</h1>,

0 commit comments

Comments
 (0)