Skip to content

Commit

Permalink
fix(css): add JSDoc comment to sx.label
Browse files Browse the repository at this point in the history
  • Loading branch information
hasparus committed Jun 10, 2021
1 parent 6bf6cc5 commit ce4129b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/color/test/index.tsx
Expand Up @@ -6,8 +6,6 @@ import { ThemeProvider } from '@theme-ui/theme-provider'
import { render } from '@theme-ui/test-utils'
import { matchers } from '@emotion/jest'

expect.extend(matchers)

import {
darken,
lighten,
Expand All @@ -27,6 +25,8 @@ import {
grayscale,
} from '../src'

expect.extend(matchers)

const theme = {
colors: {
primary: '#0cf',
Expand Down
8 changes: 7 additions & 1 deletion packages/css/src/types.ts
Expand Up @@ -491,7 +491,13 @@ export interface ThemeDerivedStyles {
(theme: Theme): ThemeUICSSObject
}

export type Label = {
export interface Label {
/**
* String appended to generated class name.
* @see https://emotion.sh/docs/labels
*
* You can style HTML <label> elements with `"& label": {}`.
*/
label?: string
}

Expand Down

0 comments on commit ce4129b

Please sign in to comment.