How to access the base font size set #2203
-
So in Flex, we're dynamically setting the maxHeight of textarea and to determine the right height we need to know what the base font size is. Since lineHeight is represented in rem and to convert it to pixel, we need the base font size set. Is there a way/api in Paste to find that out? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi @narendrashetty! The Also, I think the anatomy and props tables, coupled with our tokens page, would be the best place to find details about sizing. (though |
Beta Was this translation helpful? Give feedback.
Hi @narendrashetty! The
maxHeight
value of our Paste TextArea component is fixed at oursize-30
token. Could you give us some more context about what you're building and why you're looking to have dynamic behavior? We might be able to find a more suitable solution!Also, I think the anatomy and props tables, coupled with our tokens page, would be the best place to find details about sizing. (though
maxHeight
was not a property we listed in this component, so that's on us)