import { Meta } from '@storybook/addon-docs/blocks'

<Meta title='@dxtmisha/en/functional-basic/Functions/toKebabCase - Converting a string to kebab-case'/>

# `toKebabCase`

Converts a text string to `kebab-case` format. The function converts all letters to lowercase and replaces spaces, special characters, and case transitions (CamelCase) with dashes.

**Parameters:**
- `value: string` — The original string to convert.

**Returns:**
`string` — The string in `kebab-case` format.

```typescript
import { toKebabCase } from '@dxtmisha/functional-basic'

console.log(toKebabCase('Hello World')) // 'hello-world'
console.log(toKebabCase('userProfileData')) // 'user-profile-data'
console.log(toKebabCase('Some_Special@String')) // 'some-special-string'
```
