Skip to content

Commit

Permalink
docs: improve jsdoc of some components
Browse files Browse the repository at this point in the history
  • Loading branch information
jtiala committed Jan 25, 2024
1 parent 535ebfb commit 256595f
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/react/src/components/Anchor/Anchor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export type AnchorProps = {
const className = cn("anchor");

/**
* Display a hyperlink.
* A hyperlink used for navigation within the application or to external resources.
*/
export function Anchor({
href,
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/components/Button/Button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export type ButtonProps = {
const className = cn("button");

/**
* A clickable UI element commonly used to trigger actions, such as submitting a form.
* An interactive element used for triggering actions. Shouldn't be used for navigating.
*/
export function Button({
type = "button",
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/components/Input/Input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export type InputProps = {
const className = cn("input");

/**
* Display an input.
* A input field that can be used for various input scenarios.
*/
export function Input({
type = "text",
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/components/Stack/Stack.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const verticalClassName = cn("stack-vertical");
const horizontalClassName = cn("stack-horizontal");

/**
* Display a stack of items.
* A layout element for stacking content.
*/
export function Stack({
direction = "vertical",
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/components/Textarea/Textarea.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export type TextareaProps = {
const className = cn("textarea");

/**
* Display an textarea.
* Capture user input as multiline text.
*/
export function Textarea({
name,
Expand Down

0 comments on commit 256595f

Please sign in to comment.