mirror of
https://github.com/claude-code-best/claude-code.git
synced 2026-06-17 13:55:50 +00:00
18 lines
351 B
TypeScript
18 lines
351 B
TypeScript
import React from 'react';
|
|
|
|
export type Props = {
|
|
/**
|
|
* Number of newlines to insert.
|
|
*
|
|
* @default 1
|
|
*/
|
|
readonly count?: number;
|
|
};
|
|
|
|
/**
|
|
* Adds one or more newline (\n) characters. Must be used within <Text> components.
|
|
*/
|
|
export default function Newline({ count = 1 }: Props) {
|
|
return <ink-text>{'\n'.repeat(count)}</ink-text>;
|
|
}
|