Header

Truncate

Used to truncate text in a single line

Usage

import { Truncate } from '@cleartrip/bento'

Playground

Lorem Ipsum is simply dummy text of the printing and typesetting industry. type specimen book Lorem Ipsum is simply dummy text of the printing and typesetting industry. type specimen book

className

string

Classes to be added to the component

width

union

Width at which to truncate text

children

node

Text to be truncated

as

enum

Element to be wrapped around text