Fabric is cloth or other material produced by weaving cotton, nylon, wool, silk, or other threads together. Fabrics are used for making things such as clothes, curtains, and sheets.
A piece of white fabric was thrown out of the window.
They sell silks and other soft fabrics.
Don't use ‘fabric’ to refer to a building where machines are used to make things. A building like this is usually called a factory.