Skip to content

Commit

Permalink
Add default values to JSDoc and README
Browse files Browse the repository at this point in the history
  • Loading branch information
ciampo committed Nov 28, 2022
1 parent 24b46e3 commit 559e5ee
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/components/src/base-field/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,18 @@ Whether the field is disabled.
Renders an error style around the component.

- Required: No
- Default: `false`

### `isInline`: `boolean`

Renders a component that can be inlined in some text.

- Required: No
- Default: `false`

### `isSubtle`: `boolean`

Renders a subtle variant of the component.

- Required: No
- Default: `false`
6 changes: 6 additions & 0 deletions packages/components/src/base-field/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,20 @@ export type BaseFieldProps = FlexProps & {
disabled?: boolean;
/**
* Renders an error style around the component.
*
* @default false
*/
hasError?: boolean;
/**
* Renders a component that can be inlined in some text.
*
* @default false
*/
isInline?: boolean;
/**
* Renders a subtle variant of the component.
*
* @default false
*/
isSubtle?: boolean;
};

0 comments on commit 559e5ee

Please sign in to comment.