Files
docx-js/docs/usage/bullet-points.md
2021-02-24 13:30:40 +01:00

30 lines
498 B
Markdown

# Bullet Points
## Example
To make a bullet point, simply make a paragraph into a bullet point:
```ts
doc.addSection({
children: [
new Paragraph({
text: "Bullet points",
bullet: {
level: 0 //How deep you want the bullet to be
}
}),
new Paragraph({
text: "Are awesome",
bullet: {
level: 0
}
})
],
});
```
### This will produce:
- Bullet points
- Are awesome