1.0.3 • Published 2 years ago
@rain-cafe/ribbon v1.0.3
@rain-cafe/ribbon
Preview
Usage
import { Ribbon } from '@rain-cafe/ribbon';
export function MyApp() {
return (
<div>
My super cool content.
<Ribbon>Local</Ribbon>
</div>
);
}Properties
| Name | Description | Optional? |
|---|---|---|
| children | The contents of the ribbon | Yes |
| color | The font color | Yes (defaults to black) |
| backgroundColor | The background color | Yes (defaults to white) |
| position | The positioning of the ribbon | Yes (defaults to top-right) |