import { SelectorFind } from '@ephox/sugar'; const elements = SelectorFind.all('.my-class');
import { SelectorFind } from '@ephox/sugar'; const element = SelectorFind.first('input[type="checkbox"]');
import { SelectorFind } from '@ephox/sugar'; const container = document.getElementById('my-container'); if (container) { const elements = SelectorFind.all('li', container); }In this example, the SelectorFind.all() method is used to find all list item elements within a container element that has an ID of "my-container". The package library for @ephox.sugar SelectorFind is Sugar.