3.1.0 • Published 3 years ago

@samrobbins/admonition-components v3.1.0

Weekly downloads
3
License
MIT
Repository
github
Last release
3 years ago

Admonition components

React components for admonitions

Definition

<Definition name="Definition name">

Definition text

</Definition>

This will generate a component that looks like this

Definition

Corollary

I've never needed to add a title, so this just takes a child

<Corollary>

Definition text

</Corollary>

Which looks like this:

Corollary

Example

The example component keeps the main text hidden until you toggle it. This keeps the amount of text on the page down, while allowing for more detail

<Example title="Title">

Content

</Example>

Closed this looks like:

Example Close

Then on pressing the toggle it looks like:

Example Open

Important

Important is for important notes, so doesn't take a title

<Important>

An important note

</Important>

This looks like this:

Important

Lemma

This doesn't have a title, but might need one at some point, raise an issue if it's required

Implemented like this

<Lemma>

Lemma text

</Lemma>

Lemma

Problem

This is defined differently to the others, as all decision problems follow the same structure

<Problem name="k-colourability" instance="A graph G" question="Is there a colouring of G using at most k colours?"/>

And looks like this:

Problem

Theorem

Theorem has the option of name for adding a title, and takes the main content as a child like so:

<Theorem name="Theorem name">

Theorem content

</Theorem>

And looks like this:

Theorem

3.1.0

3 years ago

3.0.0

3 years ago

2.0.0

3 years ago

1.4.0

3 years ago

1.3.0

3 years ago

1.2.3

3 years ago

1.2.2

3 years ago

1.2.0

3 years ago

1.1.0

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago