@hashicorp/react-author-byline
Advanced tools
Comparing version 0.1.0 to 0.2.0-canary-20220418211631
@@ -19,6 +19,6 @@ import { render, screen } from '@testing-library/react' | ||
it('should render variant', () => { | ||
it('should render dark appearance', () => { | ||
render( | ||
<AuthorByline | ||
variant="dark" | ||
appearance="dark" | ||
avatar="https://www.datocms-assets.com/2885/1560891392-cropped0000armon.jpg" | ||
@@ -25,0 +25,0 @@ name="Name" |
{ | ||
"name": "@hashicorp/react-author-byline", | ||
"version": "0.1.0", | ||
"version": "0.2.0-canary-20220418211631", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "author": "HashiCorp", |
@@ -21,2 +21,7 @@ module.exports = { | ||
}, | ||
appearance: { | ||
type: 'string', | ||
options: ['light', 'dark'], | ||
description: 'Render on light or dark backgrounds', | ||
}, | ||
} |
@@ -17,3 +17,3 @@ export interface AuthorBylineProps { | ||
*/ | ||
variant?: 'light' | 'dark' | ||
appearance?: 'light' | 'dark' | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
5016
8
145