Skip to content

Commit

Permalink
fixup! Style(web-react): Fix docs using makrdown linter
Browse files Browse the repository at this point in the history
  • Loading branch information
literat committed Dec 12, 2024
1 parent 17d4b08 commit e05e3da
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/web-react/src/components/Accordion/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { AccordionOpenStateType } from '@lmc-eu/spirit-web-react/types';
```

```typescript
const [openState, setOpenState] = useState < AccordionOpenStateType > undefined;
const [openState, setOpenState] = useState<AccordionOpenStateType>(undefined);
```

```javascript
Expand Down Expand Up @@ -55,13 +55,13 @@ const toggle = (id) => {
### Default with Opened on Init

```typescript
const [openState, setOpenState] = useState < AccordionOpenStateType > ['accordion-item-example-1'];
const [openState, setOpenState] = useState<AccordionOpenStateType>(['accordion-item-example-1']);
```

### Open Only One at a Time

```typescript
const [openState, setOpenState] = useState < AccordionOpenStateType > '';
const [openState, setOpenState] = useState<AccordionOpenStateType>('');
```

### Uncontrolled Accordion (Stay Open)
Expand Down

0 comments on commit e05e3da

Please sign in to comment.