import Tabs from '@theme/Tabs' import TabItem from '@theme/TabItem'
getByPlaceholderText, queryByPlaceholderText, getAllByPlaceholderText, queryAllByPlaceholderText, findByPlaceholderText, findAllByPlaceholderText
This will search for all elements with a placeholder attribute and find one that matches the given TextMatch
.
<Tabs defaultValue="native" values={[ { label: 'Native', value: 'native', }, { label: 'React', value: 'react', }, { label: 'Cypress', value: 'cypress', }, ] }>
Note
A placeholder is not a good substitute for a label so you should generally use
getByLabelText
instead.
TextMatch options