@asphalt-react/crater
Version:
Crater
46 lines (29 loc) • 1.05 kB
Markdown

[](https://badge.fury.io/js/@asphalt-react%2Fcrater)
Crater is a container to wrap other components like form elements. Crater comes in three sizes `small`, `medium` & `large`.
You can remove the spacing inside Crater as well.
```jsx
import { Crater } from "@asphalt-react/crater"
<Crater>
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
</Crater>
```
[]:
React node to render inside the Crater.
| type | required | default |
| ---- | -------- | ------- |
| node | true | N/A |
Adds padding on all sides.
| type | required | default |
| ---- | -------- | ------- |
| bool | false | true |
Controls size of Crater. Possible values are "s", "m", "l" for small, medium & large respectively.
| type | required | default |
| ---- | -------- | ------- |
| enum | false | "m" |